-
Notifications
You must be signed in to change notification settings - Fork 0
/
_SpecRunnerTablet.html
51 lines (51 loc) · 1.87 KB
/
_SpecRunnerTablet.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner - Tablet</title>
<link rel="stylesheet" type="text/css" href=".grunt/grunt-contrib-jasmine/jasmine.css">
<script src="./public/resources/js/touch/sencha-touch-all-debug.js"></script>
<script src="./.grunt/grunt-contrib-jasmine/jasmine.js"></script>
<script src="./.grunt/grunt-contrib-jasmine/jasmine-html.js"></script>
<script src="./tests/specs/app/asset_tablet.js"></script>
<script src="./tests/specs/app/individual_tablet.js"></script>
<script>
(function(){
'use strict';
var jasmineEnv = jasmine.getEnv();
jasmineEnv.updateInterval = 1000;
var htmlReporter = new jasmine.HtmlReporter();
jasmineEnv.addReporter(htmlReporter);
jasmineEnv.specFilter = function(spec) {
return htmlReporter.specFilter(spec);
};
function sendMessage() {
var args = [].slice.call(arguments);
var payload = JSON.stringify(args);
if (window._phantom) {
alert(payload);
} else {
console.log(payload);
}
}
var reporter = new jasmine.Reporter();
reporter.reportRunnerResults = function (runner) {
if (window.__coverage__) {
sendMessage('jasmine.coverage', __coverage__);
}
};
jasmine.getEnv().addReporter(reporter);
Ext.onReady(function() {
Ext.Loader.setPath(
{"Core":"build/output/coverage/www/app"}
);
jasmineEnv.execute();
});
}());
</script>
<script src="./.grunt/grunt-contrib-jasmine/reporter.js"></script>
</head>
<body>
<h3>Core: Tablet</h3>
</body>
</html>