SpecRunner.html
1.94 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner v2.2.0</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-2.2.0/jasmine_favicon.png">
<link rel="stylesheet" href="lib/jasmine-2.2.0/jasmine.css">
<!-- include source files here... -->
<script src="../js/require.js"></script>
<!-- include spec files here...if you not use require.js library -->
<script type="text/javascript">
require(['../js/requirejs-config'],function(){
require.config({
paths: {
"jasmine": test+'/lib/jasmine-2.2.0/jasmine',
"jasmine-html": test+'/lib/jasmine-2.2.0/jasmine-html',
"jasmine-jquery": test+'/lib/jasmine-plugins/jasmine-jquery',
"jasmine-boot": test+'/lib/jasmine-2.2.0/boot',
"domReady": test+'/lib/requirejs-plugins/domReady'
},
shim:{
jasmine:{
exports: 'jasmine'
},
'jasmine-html':{
deps:['jasmine'],
exports: 'jasmine'
},
'jasmine-boot':{
deps:['jasmine-html','jasmine'],
exports:'jasmine'
}
}
});
require(
[
"domReady!",
"./spec/MainSpec.js"
],
function(){
/* Run all the loaded test specs.
*
* @see boot.js file that contains a jasmine.getEnv().execute()
* function added to window.onload event
*/
if(typeof window.onload == 'function'){
window.onload();
}
}
);
});
</script>
</head>
<body>
</body>
</html>