-
Notifications
You must be signed in to change notification settings - Fork 15
/
SpecRunner.html
104 lines (86 loc) · 3.1 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<title>Mocha Spec Runner</title>
<link rel="stylesheet" type="text/css" href="lib/mocha.css">
<script src="lib/jquery/jquery-latest.js"></script>
<script src="lib/underscore/underscore.js"></script>
<script src="src/undermore.js"></script>
<script src="lib/expect.js"></script>
<script src="lib/sinon.js"></script>
<script src="lib/sinon-expect.js"></script>
<script src="lib/mocha.js"></script>
<!-- Set up the mocha environment -->
<script>mocha.setup('bdd')</script>
<style>.test.pass.fast{ display: none; }</style>
<!-- Load some global fixtures -->
<script src="testEnv/testEnv.js"></script>
<script src="testEnv/fixtures.js"></script>
<!-- include source files here... -->
<script src="src/events.js"></script>
<script src="src/proxy.js"></script>
<script src="src/deps.js"></script>
<script src="src/deps-utils.js"></script>
<script src="src/scope.js"></script>
<script src="src/render.js"></script>
<!-- include spec files here... -->
<script src="specs/undermoreSpec.js"></script>
<script src="specs/eventsSpec.js"></script>
<script src="specs/proxySpec.js"></script>
<script src="specs/dependencySpec.js"></script>
<script src="specs/scopeSpec.js"></script>
<script src="specs/renderSpec.js"></script>
<script src="specs/jqueryHelpersSpec.js"></script>
<script src="specs/underscoreMethodSpec.js"></script>
<script src="specs/directiveDebugSpec.js"></script>
<script src="specs/directiveContentsSpec.js"></script>
<script src="specs/directiveAttrSpec.js"></script>
<script src="specs/directiveLoopSpec.js"></script>
<script src="specs/directiveWithSpec.js"></script>
<script src="specs/directiveClassesSpec.js"></script>
<script>
var clock;
before(function () {
clock = sinon.useFakeTimers();
});
after(function () {
clock.restore();
});
beforeEach(function(){
B.resetDirectiveRenderCount();
});
onload = function(){
//TODO: add a post-test cleanup step for the .globals() call in integrateMocha()
testEnv.integrateMocha();
var runner = mocha.run();
};
</script>
</head>
<body>
<!-- Display area for tests -->
<div id="mocha"></div>
<div id="fixtures" style="display:none;">
<div fixture="empty"></div>
<div fixture="name" bound-contents="name"></div>
<div fixture="email" bound-with="sender">
<div class="name" bound-contents="name"></div>
</div>
<div fixture="grandparent">
<div fixture="parent">
<div fixture="child"></div>
</div>
</div>
<div fixture="superwidget" bound-widget="superwidget">
<div fixture="widget" bound-widget="widget">
<div fixture="subwidgetA" bound-widget="subwidget"></div>
<div fixture="subwidgetB" bound-widget="subwidget"></div>
</div>
</div>
<div fixture="age" bound-contents="age"></div>
<div fixture="message" bound-classes="readState" bound-contents="text"></div>
<div fixture="friends" bound-loop="friends">
<div fixture="friendsItemTemplate" bound-contents="name" bound-item-template></div>
</div>
</div>
</body>
</html>