-
Notifications
You must be signed in to change notification settings - Fork 163
/
SpecRunner.htmltemplate
42 lines (40 loc) · 1.44 KB
/
SpecRunner.htmltemplate
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>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$sourceEncoding$">
$if(autoRefresh)$
<meta http-equiv="refresh" content="$autoRefreshInterval$">
$endif$
<title>Jasmine Spec Runner</title>
<script type="application/javascript">
window.onerror = function(msg, url, line) {
var errors = window.consoleErrors = window.consoleErrors || [];
errors.push(msg + ' (' + url + ':' + line + ')');
};
function getConsoleErrors() {
var errors = [];
if (jsApiReporter && jsApiReporter.runDetails && jsApiReporter.runDetails.failedExpectations) {
errors = jsApiReporter.runDetails.failedExpectations
.map((error) => error.message + ' (' + error.filename + ':' + error.lineno + ')');
}
if (errors.length === 0) {
errors = window.consoleErrors;
}
return errors;
}
</script>
$cssDependencies$
$javascriptDependencies$
<script type="application/javascript">
window.onload = jasmine.boot;
</script>
$allScriptTags$
</head>
<body>
<script type="application/javascript">
if(window.location.href.indexOf("SpecRunner.html") !== -1) {
document.body.appendChild(document.createTextNode("Warning: Opening this HTML file directly from the file system is deprecated. You should instead try running `mvn jasmine:bdd` from the command line, and then visit `http://localhost:8234` in your browser. "))
}
</script>
</body>
</html>