forked from sahiga/chatterbox-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SpecRunner.html
46 lines (41 loc) · 1.1 KB
/
SpecRunner.html
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
<!DOCTYPE HTML>
<html>
<head>
<title>Mocha Spec Runner</title>
<link rel="stylesheet" href="lib/mocha/mocha.css">
<script src="lib/jquery.js"></script>
<script src="lib/mocha/mocha.js"></script>
<script src="lib/chai/chai.js"></script>
<script src="lib/sinon/sinon.js"></script>
<script>
mocha.setup('bdd');
var expect = chai.expect;
$(function() {
window.mochaPhantomJS ? mochaPhantomJS.run() : mocha.run();
});
</script>
<!-- Spec files -->
<script src="spec/chatterboxSpec.js"></script>
<!-- Source files -->
<script src="client/scripts/app.js"></script>
</head>
<body>
<div id="mocha"></div>
<div id="testarea" style="display: none;">
<div id="main">
<h1>chatterbox</h1>
<div class="spinner"><img src="client/images/spiffygif_46x46.gif"></div>
<div id="rooms">
Room:
<select id="roomSelect">
</select>
</div>
<form action="#" id="send" method="post">
<input type="text" name="message" id="message"/>
<input type="submit" name="submit" class="submit"/>
</form>
<div id="chats"></div>
</div>
</div>
</body>
</html>