/
compass.html
54 lines (44 loc) · 1.67 KB
/
compass.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=1.0;" />
<title>Cordova: Compass API Specs</title>
<!-- Load QUnit -->
<link rel="stylesheet" type="text/css" href="../qunit.css" />
<script type="text/javascript" src="../qunit.js"></script>
<!-- Source -->
<script type="text/javascript" src="../../phonegap.js"></script>
<!-- Load Test Runner -->
<script type="text/javascript" src="../test-runner.js"></script>
<!-- Tests -->
<script type="text/javascript" src="../tests/compass.tests.js"></script>
<script type="text/javascript">
document.addEventListener('deviceready', function() {
console.log('running tests');
var tests = new Tests();
// Each group of tests are declared as a function in the object `Tests`.
// A group of tests are identified by a name that contains the word 'Tests'.
//
// Load each group of tests into QUnit
for (var t in tests) {
if (t.indexOf('Tests') > -1) {
tests[t]();
}
}
// Start the QUnit test suite
QUnit.start();
}, false);
</script>
</head>
<body>
<div class="backBtn" onclick="backHome();">Back</div>
<h1 id="qunit-header">Cordova: Compass API Specs</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
<!-- Populated by tests -->
</div>
</body>
</html>