forked from daniellmb/MinPubSub
-
Notifications
You must be signed in to change notification settings - Fork 15
/
SpecRunner.html
50 lines (39 loc) · 1.31 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<title>pubsub.js unit tests - Jasmine Spec Runner</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-1.2.0/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="lib/jasmine-1.2.0/jasmine.css">
<script type="text/javascript" src="lib/jasmine-1.2.0/jasmine.js"></script>
<script type="text/javascript" src="lib/jasmine-1.2.0/jasmine-html.js"></script>
<!-- sources -->
<script type="text/javascript" src="src/pubsub.js"></script>
<!-- specs -->
<script type="text/javascript" src="spec/SpecPubSubEnvironments.js"></script>
<script type="text/javascript" src="spec/SpecPubSubAPI.js"></script>
<script type="text/javascript">
/*global jasmine: true, window*/
(function () {
'use strict';
var jasmineEnv = jasmine.getEnv(),
htmlReporter = new jasmine.HtmlReporter(),
currentWindowOnload = window.onload;
jasmineEnv.updateInterval = 1000;
jasmineEnv.addReporter(htmlReporter);
jasmineEnv.specFilter = function (spec) {
return htmlReporter.specFilter(spec);
};
function execJasmine() {
jasmineEnv.execute();
}
window.onload = function () {
if (currentWindowOnload) {
currentWindowOnload();
}
execJasmine();
};
}());
</script>
</head>
<body></body>
</html>