-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.html
69 lines (56 loc) · 2.67 KB
/
tests.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
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<title>JsUnit Test Runner</title>
<script language="JavaScript" type="text/javascript" src="vendor/jsunit/app/jsUnitCore.js"></script>
<script language="JavaScript" type="text/javascript" src="vendor/jsunit/app/jsUnitTestManager.js"></script>
<script language="JavaScript" type="text/javascript" src="vendor/jsunit/app/BaseUiManager.js"></script>
<script language="JavaScript" type="text/javascript" src="vendor/jsunit/app/ClassicUiManager.js"></script>
<script language="JavaScript" type="text/javascript" src="vendor/jsunit/app/ModernUiManager.js"></script>
<script language="JavaScript" type="text/javascript" src="vendor/jsunit/app/jsUnitParams.js"></script>
<script language="JavaScript" type="text/javascript" src="vendor/jsunit/app/jsUnitTracer.js"></script>
<script language="JavaScript" type="text/javascript">
var params = new JsUnit.Params(document.location.search);
var testManager;
var tracer;
function resetTestManager() {
testManager = new JsUnitTestManager(params);
tracer = new JsUnitTracer(testManager, params);
}
resetTestManager();
function onLoadHandler() {
testManager.onLoad();
testManager.maybeRun();
}
function startTests() {
testManager.kickOffTests();
}
function stopTests() {
testManager.abort();
resetTestManager();
testManager.onLoad();
}
var uiFrameUrl = testManager.getUiFrameUrl();
console.log(uiFrameUrl);
document.open();
document.write(
'<frameset id="testRunnerFrameset" rows="*,0,0,0" border="0" onload="onLoadHandler()">' + "\n" +
' <frame frameborder="0" name="mainFrame" src="./vendor/jsunit/' + uiFrameUrl + '">' + "\n" +
' <frame frameborder="0" name="mainResults" src="./vendor/jsunit/app/main-results.html">' + "\n" +
' <frame frameborder="0" name="documentLoader" src="./vendor/jsunit/app/main-loader.html">' + "\n" +
' <frame frameborder="0" name="testContainer" src="./vendor/jsunit/app/testContainer.html">' + "\n" +
' <noframes>' + "\n" +
' <body>' + "\n" +
' <p>Sorry, JsUnit requires support for frames.</p>' + "\n" +
' </body>' + "\n" +
' </noframes>' + "\n" +
'</frameset>'
);
document.close();
</script>
</head>
<body>
<noscript>Sorry, JsUnit requires JavaScript.</noscript>
</body>
</html>