-
Notifications
You must be signed in to change notification settings - Fork 1
/
SpecRunner.html
37 lines (35 loc) · 987 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Expect-dom Spec Runner</title>
<link rel="stylesheet" href="vendor/mocha.css" />
<script src="vendor/jquery-1.7.1.js"></script>
<!-- <script src="vendor/zepto.js"></script> -->
<script src="vendor/mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script src="vendor/expect.js"></script>
<script src="vendor/jsfixtures.js"></script>
<script src="expect-dom.js"></script>
<script src="spec/expectspecs.js"></script>
<script>
window.onerror = function() {
window.scriptLoadError = "Error loading script";
};
</script>
<script>
onload = function(){
mocha
.run();
if (window.scriptLoadError)
$("#status").append("Script load error");
};
</script>
</head>
<body>
<div id="mocha">
</div>
<div id="status">
</div>
</body>
</html>