/
runner.html
75 lines (73 loc) · 2.2 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>gregorian-calendar tests</title>
<link rel='stylesheet' href='/node_modules/mocha/mocha.css'/>
<style>
html, body {
border: 0;
padding: 0;
margin: 0;
}
</style>
</head>
<body>
<h1 style="text-align: center">gregorian-calendar-format tests</h1>
<div id='mocha'></div>
<script src="/node_modules/modulex/build/modulex-debug.js?nowrap"></script>
<script src="/node_modules/async/lib/async.js?nowrap"></script>
<script src="/node_modules/node-jscover/lib/front-end/header.js?nowrap"></script>
<script src="/node_modules/node-jscover/lib/front-end/jscoverage-branch.js?nowrap"></script>
<script src='/node_modules/expect.js/index.js?nowrap'></script>
<script src='/node_modules/mocha/mocha.js?nowrap'></script>
<script src='/node_modules/node-jscover/lib/reporters/mocha/console.js?nowrap'></script>
<script src='/node_modules/node-jscover-coveralls/lib/reports/mocha.js?nowrap'></script>
<script>
function waits(ms) {
return function (next) {
setTimeout(next, ms);
};
}
function runs(fn) {
return function (next) {
if (fn.length) {
fn(next);
} else {
fn();
next();
}
};
}
mocha.setup('bdd');
var isBuild = location.href.indexOf('build') !== -1;
var isCoverage = location.search.indexOf('coverage') !== -1;
if (location.href.indexOf('__testling') !== -1) {
mocha.reporter('tap');
}
</script>
<script>
(function () {
if (location.href.indexOf('coverage') !== -1) {
require.config('packages', {
'/lib': {
filter: 'coverage',
base: '/lib/'
}
});
}
modulex.use(['./specs/'], function () {
var runner;
if (window.mochaPhantomJS) {
runner = mochaPhantomJS.run();
if (isCoverage) {
window.nodeJsCoverCoveralls(runner);
}
} else {
runner = mocha.run();
}
});
})();
</script>
</body>
</html>