-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.html
29 lines (29 loc) · 910 Bytes
/
test.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
<html>
<head>
<meta charset="utf-8">
<title>Zhain Mocha Tests</title>
<link rel="stylesheet" href="node_modules/mocha/mocha.css" />
<script src="node_modules/jquery-browser/lib/jquery.js"></script>
<script src="node_modules/chai/chai.js"></script>
<script src="node_modules/mocha/mocha.js"></script>
<script src="zhain.js"></script>
<script src="zhain-ext.js"></script>
<style>
#sut { position: absolute; top: 70px; right: 20px; }
</style>
</head>
<body>
<div id="mocha"></div>
<script>
function require(s) {
if (s == '../zhain') return zhain
if (s == 'chai') return chai
throw new Error('Missing dependency: ' + s)
}
</script>
<script>mocha.setup('bdd')</script>
<script src="test/zhain-test.js"></script>
<script src="test/zhain-ext-test.js"></script>
<script>window.mochaPhantomJS ? mochaPhantomJS.run() : mocha.run()</script>
</body>
</html>