-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
42 lines (38 loc) · 1.19 KB
/
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
<!doctype html>
<html lang="en">
<head>
<title>jmpress.js test runner</title>
<link rel="stylesheet" type="text/css" href="tests/lib/jasmine.css">
<script type="text/javascript" src="tests/lib/jasmine.js"></script>
<script type="text/javascript" src="tests/lib/jasmine-html.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="tests/lib/jasmine-jquery.js"></script>
<!-- Spec -->
<script type="text/javascript" src="tests/test.jmpress.js"></script>
<!-- Src -->
<script type="text/javascript" src="js/jmpress.js"></script>
<script type="text/javascript">
(function() {
var jasmineEnv = jasmine.getEnv();
jasmineEnv.updateInterval = 1000;
var trivialReporter = new jasmine.TrivialReporter();
jasmineEnv.addReporter(trivialReporter);
jasmineEnv.specFilter = function(spec) {
return trivialReporter.specFilter(spec);
};
var currentWindowOnload = window.onload;
window.onload = function() {
if (currentWindowOnload) {
currentWindowOnload();
}
execJasmine();
};
function execJasmine() {
jasmineEnv.execute();
}
})();
</script>
</head>
<body>
</body>
</html>