提交 | 用户 | 时间
|
8286c6
|
1 |
<!DOCTYPE HTML> |
懒 |
2 |
<html> |
|
3 |
<head> |
|
4 |
<title>Jasmine Spec Runner</title> |
|
5 |
|
|
6 |
<link rel="shortcut icon" type="image/png" href="lib/jasmine_favicon.png"> |
|
7 |
|
|
8 |
<link rel="stylesheet" type="text/css" href="lib/jasmine.css"> |
|
9 |
<script type="text/javascript" src="lib/jasmine.js"></script> |
|
10 |
<script type="text/javascript" src="lib/jasmine-html.js"></script> |
|
11 |
<script type="text/javascript" src="lib/json2.js"></script> |
|
12 |
|
|
13 |
<!-- include helper files here... --> |
|
14 |
<script src="helpers/h.js"></script> |
|
15 |
<script src="helpers/h-kill.js"></script> |
|
16 |
<script src="helpers/h-matchers.js"></script> |
|
17 |
|
|
18 |
<!-- include source files here... --> |
|
19 |
<script src="../es5-shim.js"></script> |
|
20 |
<script src="../es5-sham.js"></script> |
|
21 |
|
|
22 |
<!-- include spec files here... --> |
|
23 |
<script src="spec/s-array.js"></script> |
|
24 |
<script src="spec/s-function.js"></script> |
|
25 |
<script src="spec/s-string.js"></script> |
|
26 |
<script src="spec/s-object.js"></script> |
|
27 |
<script src="spec/s-number.js"></script> |
|
28 |
<script src="spec/s-date.js"></script> |
|
29 |
|
|
30 |
|
|
31 |
<script type="text/javascript"> |
|
32 |
(function() { |
|
33 |
var jasmineEnv = jasmine.getEnv(); |
|
34 |
jasmineEnv.updateInterval = 1000; |
|
35 |
|
|
36 |
var trivialReporter = new jasmine.TrivialReporter(); |
|
37 |
|
|
38 |
jasmineEnv.addReporter(trivialReporter); |
|
39 |
|
|
40 |
jasmineEnv.specFilter = function(spec) { |
|
41 |
return trivialReporter.specFilter(spec); |
|
42 |
}; |
|
43 |
|
|
44 |
var currentWindowOnload = window.onload; |
|
45 |
|
|
46 |
window.onload = function() { |
|
47 |
if (currentWindowOnload) { |
|
48 |
currentWindowOnload(); |
|
49 |
} |
|
50 |
execJasmine(); |
|
51 |
}; |
|
52 |
|
|
53 |
function execJasmine() { |
|
54 |
jasmineEnv.execute(); |
|
55 |
} |
|
56 |
|
|
57 |
})(); |
|
58 |
</script> |
|
59 |
|
|
60 |
</head> |
|
61 |
|
|
62 |
<body> |
|
63 |
</body> |
|
64 |
</html> |