-
Notifications
You must be signed in to change notification settings - Fork 0
/
testsuite.html
35 lines (31 loc) · 1.17 KB
/
testsuite.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
<!DOCTYPE html>
<html>
<head>
<title>Test suite - Jasmine HTML reporter example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="http://cdn.jsdelivr.net/jasmine/1.3.1/jasmine.css"></link>
</head>
<body>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="http://cdn.jsdelivr.net/jasmine/1.3.1/jasmine.js"></script>
<script type="text/javascript" src="http://cdn.jsdelivr.net/jasmine/1.3.1/jasmine-html.js"></script>
<script type="text/javascript" src="./target/scala-2.11/example-test-opt.js"></script>
<script type="text/javascript">
// Dummy function to prevent tests from failing
// They use it to include jQuery, but its already included above
function importScripts() {}
$(function() {
// Load tests
example.ScalaJSExampleTest();
// Setup and run Jasmine
var jasmineEnv = jasmine.getEnv();
var htmlReporter = new jasmine.HtmlReporter();
jasmineEnv.addReporter(htmlReporter);
jasmineEnv.specFilter = function(spec) {
return htmlReporter.specFilter(spec);
};
jasmineEnv.execute();
});
</script>
</body>
</html>