forked from zfben/lib.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (54 loc) · 1.48 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Lib.js</title>
<script src="src/example/javascripts/lib.js"></script>
</head>
<body>
<h1 id="qunit-header">Lib.js (<a href="https://github.com/benz303/lib.js">Fork at Github</a>)</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture"></div>
<button onclick="runtest();">Run Test</button>
<script>
function runtest(){
test('load QUnit', function(){
ok(QUnit, 'QUnit');
});
asyncTest('load localfile', 1, function(){
lib.localfile(function(){
ok(window.localfile, 'window.localfile');
start();
});
});
asyncTest('load jqGrid', 1, function(){
lib.jqGrid(function(){
ok(jQuery.jgrid, 'jQuery.jgrid');
start();
});
});
asyncTest('load home.js', 1, function(){
lib.home(function(){
ok(Backbone, 'Backbone');
start();
test('underscore is loaded', function(){
lib.underscore(function(){
ok(_, '_');
});
});
});
});
asyncTest('load i18n', 1, function(){
lib.i18n(function(){
ok(i18n, 'i18n');
start();
});
});
return true;
}
</script>
</body>
</html>