-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (49 loc) · 1.7 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
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Spec Runner</title>
<link rel="shortcut icon" type="image/png" href="/assets/jasmine/favicon.png">
<link rel="stylesheet" type="text/css" href="/assets/jasmine/jasmine.css">
<script type="text/javascript" src="/assets/bpm_libs.js"></script>
<script type="text/javascript" src="/assets/bpm_test_libs.js"></script>
<script type="text/javascript">
var packageName = location.search.match(/package=([^&]+)&?/);
packageName = packageName && packageName[1];
if (!packageName) {
var el = document.getElementById('qunit-header');
el.innerHTML = 'Pass package=foo on URL to test package';
} else {
packageName = decodeURIComponent(packageName);
var buf = [];
packageName.split(',').map(function(packageName) {
buf.push('<script src="../'+packageName+'/bpm_tests.js" type="text/javascript"><\/script>');
});
document.write(buf.join('\n'));
}
</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>