forked from mathiasbynens/he
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (51 loc) · 1.14 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>he test suite</title>
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
</head>
<body>
<div id="qunit"></div>
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
<script src="../he.js"></script>
<script>
QUnit.urlParams.norequire = /[?&]norequire=true(?:&|$)/.test(location.search);
document.write(QUnit.urlParams.norequire
? '<script src="tests.js"><\/script>'
: '<script src="../node_modules/requirejs/require.js"><\/script>'
);
</script>
<script>
(function(root) {
if (!root.require) {
return;
}
QUnit.config.autostart = false;
requirejs.config({
'baseUrl': './',
'urlArgs': 't=' + (+new Date),
'waitSeconds': 0,
'packages': [
{
'name': 'he',
'location': '..',
'main': 'he'
},
{
'name': 'tests',
'location': '.',
'main': 'tests'
}
]
});
require(['he'], function(he) {
root.he = he;
require(['tests'], function() {
QUnit.start();
});
});
}(this));
</script>
</body>
</html>