-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-test.html
50 lines (44 loc) · 1.86 KB
/
index-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
<!DOCTYPE HTML>
<html manifest="">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<title>JasmineExample</title>
<link rel="stylesheet" type="text/css" href="test/lib/jasmine-2.0.3/jasmine.css" />
<script type="text/javascript">
// Set a global flag that is consumed by app.js
window.testMode = true;
</script>
<!-- The line below must be kept intact for Sencha Cmd to build your application -->
<script id="microloader" type="text/javascript" src="bootstrap.js"></script>
<script type="text/javascript" src="test/lib/jasmine-2.0.3/jasmine.js"></script>
<script type="text/javascript" src="test/lib/jasmine-2.0.3/jasmine-html.js"></script>
<script type="text/javascript" src="test/lib/jasmine-2.0.3/boot.js"></script>
<script type="text/javascript">
(function() {
// Jasmine attaches its trigger to window.onload,
// so we capture this function to be invoked later.
// See: test/lib/jasmine-2.0.3/boot.js
var originalOnload = window.onload;
window.onload = null;
// Ext._beforereadyhandler is invoked early enough,
// but having Ext.onReady already available
Ext._beforereadyhandler = function() {
// Ext.Loader.loadScripts blocks Ext.onReady until
// all the specs are loaded
Ext.Loader.loadScripts({
// Add all specs to the array below
url: [
"test/spec/SpecExample.js"
]
});
Ext.onReady(function() {
// Now that everything is loaded, let Jasmine execution to begin
originalOnload();
});
}
})();
</script>
</head>
<body></body>
</html>