This repository was archived by the owner on Jan 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathTestRunner.html
More file actions
71 lines (65 loc) · 1.85 KB
/
Copy pathTestRunner.html
File metadata and controls
71 lines (65 loc) · 1.85 KB
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
<!DOCTYPE html>
<html>
<head>
<title> Topcoat Touch Tests </title>
<link rel="stylesheet" href="./node_modules/mocha/mocha.css"/>
<link href="css/topcoat-mobile-light.css" rel="stylesheet">
<link href="css/topcoat-touch.css" rel="stylesheet">
<script src="./node_modules/mocha/mocha.js"></script>
<script src="./node_modules/chai/chai.js"></script>
<script src="js/jquery.js"></script>
<script src="js/zepto.js"></script>
<script src="js/topcoat-touch.js"></script>
<script src="js/iscroll.js"></script>
<script src="js/lodash.js"></script>
<script src="js/hammer.js"></script>
<style>
/** Quick hack to make the site visible within the test container... **/
#testContainer {
width: 320px;
height: 480px;
border: 1px solid #000;
position: fixed;
left: calc(50% - 160px);
top: calc(50% - 240px);
}
#testContainer > div {
position: absolute;
top: 9999px;
}
#testContainer > .page {
top: 0px;
}
body > div {
position: static;
top: 0;
}
body {
overflow: visible;
}
</style>
<script>
mocha.ui('bdd');
mocha.reporter('html');
var expect = chai.expect;
</script>
<script src="test/testsSinglePage.js"></script>
<script src="test/testsSinglePageZepto.js"></script>
<script src="test/testMVC.js"></script>
<script src="test/testMVCZepto.js"></script>
<script src="test/testEvents.js"></script>
</head>
<body>
<div id="mocha">
</div>
<script>
window.$ = jQuery;
if (window.mochaPhantomJS) {
mochaPhantomJS.run();
} else {
mocha.setup({globals: ['$']});
mocha.run();
}
</script>
</body>
</html>