/
qunit.html
44 lines (39 loc) · 1.16 KB
/
qunit.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>QUnit Tests</title>
@@TestFrameworkDependencies@@
@@CodeCoverageDependencies@@
@@ReferencedCSSFiles@@
@@ReferencedJSFiles@@
@@TestJSFile@@
<script>
var amdTestPaths = [@@AMDTestPath@@];
if (window.require && typeof window.require === "function" && amdTestPaths.length > 0) {
if (window.chutzpah) {
window.chutzpah.usingModuleLoader = true;
}
require.config({
map: {
'*': {
@@AMDModuleMap@@
}
}
});
window.QUnit.config.autostart = false;
window.require(amdTestPaths, function () {
console.log("!!_!! Starting QUnit from inline AMD call...");
if (!window._Chutzpah_covobj_name) {
window.QUnit.start();
}
});
}
</script>
</head>
<body>
@@TestHtmlTemplateFiles@@
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</body>
</html>