forked from jashkenas/backbone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-amd.html
48 lines (45 loc) · 1.08 KB
/
test-amd.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
<!DOCTYPE HTML>
<html>
<head>
<title>Backbone Test Suite</title>
<link rel="stylesheet" href="vendor/qunit.css" type="text/css" media="screen" />
<script type="text/javascript" src="vendor/json2.js"></script>
<script type="text/javascript" src="vendor/qunit.js"></script>
<script type="text/javascript" src="vendor/require.js"></script>
<script>
// Tests are loaded async, so wait for them
// to load before starting.
QUnit.config.autostart = false;
require.config({
paths: {
'jquery': 'vendor/jquery',
'underscore': 'vendor/underscore',
'backbone': '../backbone'
}
});
var root = this;
require(['backbone'], function(Backbone) {
require([
'environment',
'noconflict',
'events',
'model',
'collection',
'router',
'view',
'sync'
], function() {
QUnit.start();
});
});
</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture">
<div id='testElement'>
<h1>Test</h1>
</div>
</div>
</body>
</html>