forked from pubnub/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunit-test.html
More file actions
55 lines (50 loc) · 1.42 KB
/
unit-test.html
File metadata and controls
55 lines (50 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!doctype html>
<html>
<head>
<title>PubNub Socket.IO Unit Test</title>
<link
rel=stylesheet
href=http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css
>
<style type=text/css>
#stop-test,
#finished-fail,
#finished-success,
{display:none}
</style>
</head>
<body><div class=container>
<!-- NOTICE / TITLE -->
<div class="alert-message warning">
<a class="close" href="#">×</a>
<p>
<strong>PubNub Unit Tests</strong>
for Socket.IO on Mobile and Desktop Web Browser
</p>
</div>
<!-- BUTTON PANNEL -->
<div class=well>
<button id=start-test class='btn info'>Start Test</button>
<button id=stop-test class='btn danger'>STOP</button>
<span id=finished-success class='label success'>100% Successful</span>
<span id=finished-fail class='label important'>Finished With Errors</span>
<span
id=test-status
class=label
template='Result: {pass}/{fail} (pass/fail) - Total: {total}'
>...</span>
</div>
<!-- OUTPUT -->
<table id=unit-test-out class="zebra-striped">
<tr><th><span class=label>Pass/Fail</span><th>Test Ready
</table>
<!-- TEMPLATES -->
<script type=text/template id=test_template>
<td><span class="label {result}">{display}</span></td>
<td>{message}</td>
</script>
<div id=pubnub></div>
<script src=../socket.io.min.js></script>
<script src=unit-test.js></script>
</div></body>
</html>