-
Notifications
You must be signed in to change notification settings - Fork 9
/
SpecRunner.html
35 lines (30 loc) · 931 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine_favicon.png">
<link rel="stylesheet" href="lib/jasmine.css">
<script src="lib/jasmine.js"></script>
<script src="lib/jasmine.js"></script>
<script src="lib/jasmine-html.js"></script>
<script src="lib/boot.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script>
jasmine.getEnv().addReporter({
jasmineDone: function (runDetails) {
if (_.isUndefined(_.findWhere(jsApiReporter.specs(), { status: 'failed'}))) {
setTimeout(() => {
window.alert('yay!');
}, 500);
}
}
});
</script>
<script src="src/closures.js"></script>
<script src="specs/tests.js"></script>
</head>
<body>
<h1>Code Chrysalis</h1>
</body>
</html>