forked from marionettejs/backbone.marionette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpecRunner.html
152 lines (134 loc) · 6.28 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!doctype html>
<html>
<head>
<title>Marionette SpecRunner</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="node_modules/mocha/mocha.css" />
<script src="node_modules/mocha/mocha.js"></script>
<script src="node_modules/chai/chai.js"></script>
<script src="node_modules/sinon/pkg/sinon.js"></script>
<script src="node_modules/sinon-chai/lib/sinon-chai.js"></script>
<script src="node_modules/chai-jq/chai-jq.js"></script>
<script>
mocha.setup('bdd');
window.expect = chai.expect;
window.sinon = sinon;
onload = function() {
mocha.checkLeaks();
mocha.run();
var $fixtures = $('#fixtures');
var setFixtures = function () {
_.each(arguments, function (content) {
$fixtures.append(content);
});
};
var clearFixtures = function () {
$fixtures.empty();
};
var originalHash = window.location.hash;
before(function() {
this.setFixtures = setFixtures;
this.clearFixtures = clearFixtures;
});
beforeEach(function () {
this.sinon = sinon.sandbox.create();
});
afterEach(function () {
this.sinon.restore();
this.clearFixtures();
window.location.hash = originalHash;
Backbone.history.stop();
Backbone.history.handlers.length = 0;
});
};
</script>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/underscore/underscore.js"></script>
<script src="node_modules/backbone/backbone.js"></script>
<script src="node_modules/backbone.wreqr/lib/backbone.wreqr.js"></script>
<script src="node_modules/backbone.babysitter/lib/backbone.babysitter.js"></script>
<script>
window.Marionette = Backbone.Marionette = {};
window.slice = Array.prototype.slice;
Marionette.Deferred = Backbone.$.Deferred;
</script>
<script src="src/callbacks.js"></script>
<script src="src/trigger-method.js"></script>
<script src="src/bind-entity-events.js"></script>
<script src="src/dom-refresh.js"></script>
<script src="src/helpers.js"></script>
<script src="src/error.js"></script>
<script src="src/renderer.js"></script>
<script src="src/template-cache.js"></script>
<script src="src/object.js"></script>
<script src="src/features.js"></script>
<script src="src/controller.js"></script>
<script src="src/app-router.js"></script>
<script src="src/application.js"></script>
<script src="src/module.js"></script>
<script src="src/region.js"></script>
<script src="src/region-manager.js"></script>
<script src="src/behavior.js"></script>
<script src="src/behaviors.js"></script>
<script src="src/view.js"></script>
<script src="src/item-view.js"></script>
<script src="src/layout-view.js"></script>
<script src="src/collection-view.js"></script>
<script src="src/composite-view.js"></script>
<script src="test/unit/application.app-regions.spec.js"></script>
<script src="test/unit/application.spec.js"></script>
<script src="test/unit/app-router.spec.js"></script>
<script src="test/unit/behaviors.spec.js"></script>
<script src="test/unit/bind-entity-events.spec.js"></script>
<script src="test/unit/callbacks.spec.js"></script>
<script src="test/unit/collection-view.empty-view.spec.js"></script>
<script src="test/unit/collection-view.item-view-options.spec.js"></script>
<script src="test/unit/collection-view.reset.spec.js"></script>
<script src="test/unit/collection-view.filter.spec.js"></script>
<script src="test/unit/collection-view.spec.js"></script>
<script src="test/unit/commands.spec.js"></script>
<script src="test/unit/composite-view.child-view-container.spec.js"></script>
<script src="test/unit/composite-view.on-before-render.spec.js"></script>
<script src="test/unit/composite-view.spec.js"></script>
<script src="test/unit/controller.spec.js"></script>
<script src="test/unit/destroying-views.spec.js"></script>
<script src="test/unit/error.spec.js"></script>
<script src="test/unit/features.spec.js"></script>
<script src="test/unit/get-immediate-children.spec.js"></script>
<script src="test/unit/get-nested-views.spec.js"></script>
<script src="test/unit/get-option.spec.js"></script>
<script src="test/unit/helpers.spec.js"></script>
<script src="test/unit/item-view.spec.js"></script>
<script src="test/unit/layout-view.dynamic-regions.spec.js"></script>
<script src="test/unit/layout-view.spec.js"></script>
<script src="test/unit/mixin-underscore-collection.spec.js"></script>
<script src="test/unit/module.spec.js"></script>
<script src="test/unit/module.stop.spec.js"></script>
<script src="test/unit/normalize-methods.spec.js"></script>
<script src="test/unit/normalize-ui.spec.js"></script>
<script src="test/unit/object.spec.js"></script>
<script src="test/unit/on-attach.spec.js"></script>
<script src="test/unit/on-dom-refresh.spec.js"></script>
<script src="test/unit/precompiled-template-rendering.spec.js"></script>
<script src="test/unit/region-manager.spec.js"></script>
<script src="test/unit/region.build-region.spec.js"></script>
<script src="test/unit/region.spec.js"></script>
<script src="test/unit/renderer.spec.js"></script>
<script src="test/unit/request-response.spec.js"></script>
<script src="test/unit/sorted-views.spec.js"></script>
<script src="test/unit/template-cache.spec.js"></script>
<script src="test/unit/template-helpers.spec.js"></script>
<script src="test/unit/trigger-method.spec.js"></script>
<script src="test/unit/unbind-entity-events.spec.js"></script>
<script src="test/unit/view.entity-events.spec.js"></script>
<script src="test/unit/view.spec.js"></script>
<script src="test/unit/view.triggers.spec.js"></script>
<script src="test/unit/view.ui-bindings.spec.js"></script>
<script src="test/unit/view.ui-event-and-triggers.spec.js"></script>
</head>
<body>
<div id="mocha"></div>
<div id="fixtures" hidden></div>
</body>
</html>