blob: 5ff9f22911eb1d75f3556acaeb767347de28db91 [file] [log] [blame]
Randy Abernethyded64012015-02-15 11:28:40 -08001<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19-->
20<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
21<head>
22 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
23 <title>Thrift Javascript Bindings: Unit Test</title>
24
Mustafa Senol Cosarf86845e2018-12-05 17:50:18 +030025 <script src="build/js/lib/Int64.js" type="text/javascript" charset="utf-8"></script>
26 <script src="build/js/lib/Int64Util.js" type="text/javascript" charset="utf-8"></script>
27 <script src="build/js/lib/JSONInt64.js" type="text/javascript" charset="utf-8"></script>
Randy Abernethyded64012015-02-15 11:28:40 -080028 <script src="build/js/thrift.js" type="text/javascript" charset="utf-8"></script>
29 <script src="gen-js/ThriftTest_types.js" type="text/javascript" charset="utf-8"></script>
30 <script src="gen-js/ThriftTest.js" type="text/javascript" charset="utf-8"></script>
31
32 <!-- jQuery -->
Nobuaki Sukegawa63b51202015-05-10 23:35:07 +090033 <script type="text/javascript" src="build/js/lib/jquery.js" charset="utf-8"></script>
Randy Abernethyded64012015-02-15 11:28:40 -080034
35 <!-- QUnit Test framework-->
Nobuaki Sukegawa63b51202015-05-10 23:35:07 +090036 <script type="text/javascript" src="build/js/lib/qunit.js" charset="utf-8"></script>
37 <link rel="stylesheet" href="build/js/lib/qunit.css" type="text/css" media="screen" />
Randy Abernethyded64012015-02-15 11:28:40 -080038
39 <!-- the Test Suite-->
40 <script>
Brian Forbisb5d6ea32018-08-25 23:39:29 -040041 const loc = window.location;
42 const ws_uri = ((loc.protocol === "https:") ? "wss://" : "ws://") +
Randy Abernethyded64012015-02-15 11:28:40 -080043 loc.hostname + ":" + loc.port + loc.pathname;
Brian Forbisb5d6ea32018-08-25 23:39:29 -040044 const transport = new Thrift.TWebSocketTransport(ws_uri);
45 const protocol = new Thrift.Protocol(transport);
46 const client = new ThriftTest.ThriftTestClient(protocol);
Randy Abernethyded64012015-02-15 11:28:40 -080047 transport.open();
48 </script>
49 <script type="text/javascript" src="test-async.js" charset="utf-8"></script>
50</head>
51<body>
Robert Lua1390822018-12-27 23:57:35 +080052 <h1 id="qunit-header">Thrift Javascript Bindings: Unit Test (<a href="https://github.com/apache/thrift/blob/master/test/ThriftTest.thrift">ThriftTest.thrift</a>)</h1>
Randy Abernethyded64012015-02-15 11:28:40 -080053 <h2 id="qunit-banner"></h2>
54 <div id="qunit-testrunner-toolbar"></div>
55 <h2 id="qunit-userAgent"></h2>
56 <ol id="qunit-tests"><li><!-- get valid xhtml strict--></li></ol>
Nobuaki Sukegawa42bc88c2015-05-10 23:33:36 +090057 <!-- Uncomment this to check the validity. This significantly slows down the test.
Randy Abernethyded64012015-02-15 11:28:40 -080058 <p>
59 <a href="http://validator.w3.org/check/referer"><img
60 src="http://www.w3.org/Icons/valid-xhtml10"
61 alt="Valid XHTML 1.0!" height="31" width="88" /></a>
62 </p>
Nobuaki Sukegawa42bc88c2015-05-10 23:33:36 +090063 -->
Randy Abernethyded64012015-02-15 11:28:40 -080064</body>
65</html>