forked from aliceui/aliceui.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunner.html
More file actions
56 lines (49 loc) · 1.5 KB
/
runner.html
File metadata and controls
56 lines (49 loc) · 1.5 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
56
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Aliceui.org Mocha Runner</title>
<link href="../static/css/mocha.css" type="text/css" rel="stylesheet" charset="utf-8">
</head>
<body>
<script src="../static/js/mocha.js?nowrap"></script>
<script src="../static/js/sinon.js?nowrap"></script>
<div id="mocha"></div>
<script>
mocha.ui('bdd');
mocha.reporter('html');
</script>
<script>
// polyfill for phantomjs 1.x
// https://github.com/webpack/style-loader/issues/31
if (typeof Function.prototype.bind != 'function') {
Function.prototype.bind = function bind(obj) {
var args = Array.prototype.slice.call(arguments, 1),
self = this,
nop = function() {
},
bound = function() {
return self.apply(
this instanceof nop ? this : (obj || {}), args.concat(
Array.prototype.slice.call(arguments)
)
);
};
nop.prototype = this.prototype || {};
bound.prototype = new nop();
return bound;
};
}
</script>
<script src="../dist/test.js?nowrap"></script>
<script>
if (window.mochaPhantomJS) {
mochaPhantomJS.run();
} else {
mocha.run();
}
</script>
</body>
</html>