-
Notifications
You must be signed in to change notification settings - Fork 31
/
index.html
84 lines (71 loc) · 3.06 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<title>Test suite</title>
<link rel="stylesheet" href="vendor/qunit-min.css">
<!-- Use qunit to help run tests -->
<script src="vendor/qunit-min.js"></script>
<!-- Use requireJS to help make test modular -->
<script src="../empress/support_files/vendor/require-2.1.22.min.js"></script>
</head>
<body>
<!-- required for qunit -->
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script>
QUnit.config.autostart = false;
requirejs.config({
'baseUrl' : '../empress/',
// all paths are relative to baseUrl, note that .js extension should
// not be used
'paths' : {
/* vendor paths */
'jquery' : './support_files/vendor/jquery-2.2.4.min',
'glMatrix' : './support_files/vendor/gl-matrix.min',
'chroma' : './support_files/vendor/chroma.min',
'underscore' : './support_files/vendor/underscore-min',
/* succinct tree paths */
'ByteArray': './support_files/js/byte-array',
'BPTree' : './support_files/js/bp-tree',
'Camera' : './support_files/js/camera',
'Colorer' : './support_files/js/colorer',
'BiomTable': './support_files/js/biom-table',
'SummaryHelper': './support_files/js/summary-helper',
'util' : './support_files/js/util',
'Empress' : './support_files/js/empress',
'Drawer' : './support_files/js/drawer',
'VectorOps' : './support_files/js/vector-ops',
'CanvasEvents' : './support_files/js/canvas-events',
'SelectedNodeMenu' : './support_files/js/select-node-menu',
/* test paths */
'testBPTree' : './../tests/test-bp-tree',
'testByteTree' : './../tests/test-byte-array',
'testCamera' : './../tests/test-camera',
'testBIOMTable' : './../tests/test-biom-table',
'testColorer' : './../tests/test-colorer',
'testSummaryHelper': './../tests/test-summary-helper',
'testUtil' : './../tests/test-util',
'testCircularLayoutComputation' : './../tests/test-circular-layout-computation',
'testVectorOps' : './../tests/test-vector-ops',
'testEmpress' : './../tests/test-empress'
}
});
// load tests
require(
['jquery', 'glMatrix', 'chroma', 'underscore', 'ByteArray', 'BPTree',
'Camera', 'Colorer', 'BiomTable', 'SummaryHelper', 'util', 'Empress',
'testBPTree', 'testByteTree', 'testBIOMTable', 'testCamera',
'testColorer', 'testSummaryHelper', 'testUtil',
'testCircularLayoutComputation', 'testVectorOps', 'testEmpress'],
// start tests
function ($, gl, chroma, underscore, ByteArray, BPTree, Camera,
testBIOMTable, Colorer, BiomTable, SummaryHelper, util, Empress,
testBPTree, testByteTree, testCamera, testColorer, testSummaryHelper,
testUtil, testCircularLayoutComputation, testVectorOps, testEmpress) {
$(document).ready(function() {
QUnit.start();
});
});
</script>
</body>
</html>