forked from makersquare/backbone-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpecRunner.html
67 lines (52 loc) · 2.11 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Spec Runner</title>
<link rel="shortcut icon" type="image/png" href="vendor/jasmine-1.3.1/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="vendor/jasmine-1.3.1/jasmine.css">
<script type="text/javascript" src="vendor/jasmine-1.3.1/jasmine.js"></script>
<script type="text/javascript" src="vendor/jasmine-1.3.1/jasmine-html.js"></script>
<!-- This should be in sync with index.html -->
<!-- 3rd-party scripts -->
<script src="vendor/jquery-1.10.2.js" type="text/javascript"></script>
<script src="vendor/underscore.js" type="text/javascript"></script>
<script src="vendor/backbone.js" type="text/javascript"></script>
<!-- Globals -->
<script src="src/util.js" type="text/javascript"></script>
<!-- Views -->
<script src="src/models/dummy.js" type="text/javascript"></script>
<!-- Views -->
<script src="src/views/dummy-view.js" type="text/javascript"></script>
<!-- DON'T INCLUDE MAIN, since you don't want to start your application -->
<!-- <script src="src/main.js" type="text/javascript"></script> -->
<!-- include spec files here... -->
<script type="text/javascript" src="spec/SpecHelper.js"></script>
<script type="text/javascript" src="spec/UtilSpec.js"></script>
<script type="text/javascript" src="spec/DummySpec.js"></script>
<script type="text/javascript" src="spec/DummyViewSpec.js"></script>
<script type="text/javascript">
(function() {
var jasmineEnv = jasmine.getEnv();
jasmineEnv.updateInterval = 1000;
var htmlReporter = new jasmine.HtmlReporter();
jasmineEnv.addReporter(htmlReporter);
jasmineEnv.specFilter = function(spec) {
return htmlReporter.specFilter(spec);
};
var currentWindowOnload = window.onload;
window.onload = function() {
if (currentWindowOnload) {
currentWindowOnload();
}
execJasmine();
};
function execJasmine() {
jasmineEnv.execute();
}
})();
</script>
</head>
<body>
</body>
</html>