-
Notifications
You must be signed in to change notification settings - Fork 0
/
runner.html
41 lines (37 loc) · 1.3 KB
/
runner.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
<!DOCTYPE html>
<html>
<head>
<title>Spec Runner</title>
<link rel="stylesheet" type="text/css" href="lib/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<!-- TEST LIBRARIES INCLUDES -->
<script type="text/javascript" src="lib/expect.js"></script>
<script type="text/javascript" src="lib/sinon-1.3.4.js"></script>
<script type="text/javascript" src="lib/mocha.js"></script>
<script>
if (location.hash === '#testem')
document.write('<script src="/testem.js"></'+'script>')
</script>
<!-- ... -->
<!-- MOCHA CONFIG -->
<script type="text/javascript">mocha.setup({ ui: "bdd" });</script>
<!-- ... -->
<!-- SUT -->
<script type="text/javascript" src="src/extend.js"></script>
<script type="text/javascript" src="src/emitter.js"></script>
<script type="text/javascript" src="src/promise.js"></script>
<script type="text/javascript" src="src/is.js"></script>
<!-- ... -->
<!-- TESTS -->
<script type="text/javascript" src="test/extend.test.js"></script>
<script type="text/javascript" src="test/emitter.test.js"></script>
<script type="text/javascript" src="test/promise.test.js"></script>
<script type="text/javascript" src="test/is.test.js"></script>
<!-- ... -->
<!-- EXECUTE -->
<script type="text/javascript">mocha.run();</script>
<!-- ... -->
</body>
</html>