forked from marionettejs/backbone.marionette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpecRunner.html
111 lines (96 loc) · 4.7 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
<!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="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/underscore/underscore.js"></script>
<script src="bower_components/backbone/backbone.js"></script>
<script src="tmp/backbone.marionette.js"></script>
<script src="spec/javascripts/application.appRegions.spec.js"></script>
<script src="spec/javascripts/application.spec.js"></script>
<script src="spec/javascripts/appRouter.spec.js"></script>
<script src="spec/javascripts/behaviors.spec.js"></script>
<script src="spec/javascripts/bindEntityEvents.spec.js"></script>
<script src="spec/javascripts/callbacks.spec.js"></script>
<script src="spec/javascripts/collectionView.attachToDOM.spec.js"></script>
<script src="spec/javascripts/collectionView.emptyView.spec.js"></script>
<script src="spec/javascripts/collectionView.itemViewOptions.spec.js"></script>
<script src="spec/javascripts/collectionView.reset.spec.js"></script>
<script src="spec/javascripts/collectionView.spec.js"></script>
<script src="spec/javascripts/commands.spec.js"></script>
<script src="spec/javascripts/compositeView-childViewContainer.spec.js"></script>
<script src="spec/javascripts/compositeView.onBeforeRender.spec.js"></script>
<script src="spec/javascripts/compositeView.spec.js"></script>
<script src="spec/javascripts/controller.spec.js"></script>
<script src="spec/javascripts/destroyingViews.spec.js"></script>
<script src="spec/javascripts/getOption.spec.js"></script>
<script src="spec/javascripts/itemView.spec.js"></script>
<script src="spec/javascripts/layoutView.dynamicRegions.spec.js"></script>
<script src="spec/javascripts/layoutView.spec.js"></script>
<script src="spec/javascripts/mixinUnderscoreCollection.spec.js"></script>
<script src="spec/javascripts/module.spec.js"></script>
<script src="spec/javascripts/module.stop.spec.js"></script>
<script src="spec/javascripts/normalizeMethods.spec.js"></script>
<script src="spec/javascripts/onDomRefresh.spec.js"></script>
<script src="spec/javascripts/precompiledTemplateRendering.spec.js"></script>
<script src="spec/javascripts/region.spec.js"></script>
<script src="spec/javascripts/regionManager.spec.js"></script>
<script src="spec/javascripts/renderer.spec.js"></script>
<script src="spec/javascripts/requestResponse.spec.js"></script>
<script src="spec/javascripts/sortedViews.spec.js"></script>
<script src="spec/javascripts/templateCache.spec.js"></script>
<script src="spec/javascripts/templateHelpers.spec.js"></script>
<script src="spec/javascripts/triggerMethod.spec.js"></script>
<script src="spec/javascripts/unbindEntityEvents.spec.js"></script>
<script src="spec/javascripts/view.entityEvents.spec.js"></script>
<script src="spec/javascripts/view.spec.js"></script>
<script src="spec/javascripts/view.triggers.spec.js"></script>
<script src="spec/javascripts/view.uiBindings.spec.js"></script>
<script src="spec/javascripts/view.uiEventAndTriggers.spec.js"></script>
</head>
<body>
<div id="mocha"></div>
<div id="fixtures" hidden></div>
</body>
</html>