forked from forbesmyester/SyncIt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
69 lines (63 loc) · 1.67 KB
/
test.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
<html>
<head>
<meta charset="utf-8">
<title>Testing</title>
<link href="node_modules/mocha/mocha.css" rel="stylesheet"/>
</head>
<body>
<div id="graph"></div>
<div id="mocha"></div>
</body>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/mocha/mocha.js"></script>
<script src="node_modules/requirejs/require.js"></script>
<script src="node_modules/expect.js/index.js"></script>
<!--
uncomment to enable visualization of internal data
<script type="text/javascript" src="http://mdaines.github.io/viz.js/viz.js"></script>
-->
<script>
require.config({
baseUrl: '.',
packages: [
{
name: 'add-events',
location: 'node_modules/add-events',
main: 'index.umd'
},
{
name: 'manip',
location: 'node_modules/manip',
main: 'index.umd'
},
{
name: 'get_tlid_encoder_decoder',
location: 'node_modules/get_tlid_encoder_decoder',
main: 'index.umd'
}
]
});
$(document).ready(function() {
function assert(expr, msg) {
if (!expr) throw new Error(msg || 'failed');
}
require.config({
baseUrl: '.',
});
mocha.setup('bdd')
mocha.globals(['Module']);
require(
[
'./test/Path/AsyncLocalStorage',
'./test/updateResult.js',
'./test/SyncLocalStorage.js',
'./test/SyncIt.js',
'./test/dontListLocallyDeletedDatakeys.js'
],
function(index) {
mocha.run();
}
);
});
</script>
</html>