2012-03-23 14:56:55 -07:00

63 lines
2.5 KiB
HTML
Executable File

<!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>PhoneGap API Spec</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/accelerometer.tests.js"></script>
<script type="text/javascript" src="tests/battery.tests.js"></script>
<script type="text/javascript" src="tests/capture.tests.js"></script>
<script type="text/javascript" src="tests/compass.tests.js"></script>
<script type="text/javascript" src="tests/contacts.tests.js"></script>
<script type="text/javascript" src="tests/camera.tests.js"></script>
<script type="text/javascript" src="tests/device.tests.js"></script>
<script type="text/javascript" src="tests/file.tests.js"></script>
<script type="text/javascript" src="tests/geolocation.tests.js"></script>
<script type="text/javascript" src="tests/network.tests.js"></script>
<script type="text/javascript" src="tests/notification.tests.js"></script>
<script type="text/javascript" src="tests/orientation.tests.js"></script>
<script type="text/javascript" src="tests/storage.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>
<h1 id="qunit-header">PhoneGap API Spec</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>