forked from freskoulix/graphic_serial_monitor
-
Notifications
You must be signed in to change notification settings - Fork 4
/
SpecRunner.html
executable file
·54 lines (40 loc) · 1.31 KB
/
SpecRunner.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<link rel="stylesheet" href="js/jasmine/jasmine.css">
<script src="js/jasmine/jasmine.js"></script>
<script src="js/jasmine/jasmine-html.js"></script>
<script src="js/blanket.min.js" data-cover-adapter="js/jasmine-blanket.js"></script>
<!-- include source files here... -->
<script src="js/stringScanner.js" data-cover></script>
<script src="js/dataparser.js" data-cover></script>
<!-- include spec files here... -->
<script src="spec/StringScannerSpec.js"></script>
<script src="spec/DataParserSpec.js"></script>
<script type="text/javascript">
(function() {
var jasmineEnv = jasmine.getEnv();
jasmineEnv.updateInterval = 1000;
var htmlReporter = new jasmine.HtmlReporter();
jasmineEnv.addReporter(htmlReporter);
jasmineEnv.specFilter = function(spec) {
return htmlReporter.specFilter(spec);
};
var currentWindowOnload = window.onload;
window.onload = function() {
if (currentWindowOnload) {
currentWindowOnload();
}
execJasmine();
};
function execJasmine() {
jasmineEnv.execute();
}
})();
</script>
</head>
<body>
</body>
</html>