Skip to content

Commit 860e23e

Browse files
committed
Add client-side testing framework.
Fixes #21.
1 parent 374e131 commit 860e23e

File tree

5 files changed

+3425
-0
lines changed

5 files changed

+3425
-0
lines changed

SpecRunner.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Jasmine Spec Runner</title>
5+
6+
<link rel="shortcut icon" type="image/png" href="vendor/jasmine-1.3.1/jasmine_favicon.png">
7+
<link rel="stylesheet" type="text/css" href="vendor/jasmine-1.3.1/jasmine.css">
8+
<script type="text/javascript" src="vendor/jasmine-1.3.1/jasmine.js"></script>
9+
<script type="text/javascript" src="vendor/jasmine-1.3.1/jasmine-html.js"></script>
10+
11+
<!-- include source files here... -->
12+
<script type="text/javascript" src="lib/parallel.js"></script>
13+
14+
<!-- include spec files here... -->
15+
<script type="text/javascript" src="test/worker.spec.js"></script>
16+
<script type="text/javascript" src="test/eval.spec.js"></script>
17+
<script type="text/javascript" src="test/api.spec.js"></script>
18+
<script type="text/javascript" src="test/performance.spec.js"></script>
19+
20+
<script type="text/javascript">
21+
(function () {
22+
var jasmineEnv = jasmine.getEnv();
23+
jasmineEnv.updateInterval = 1000;
24+
25+
var htmlReporter = new jasmine.HtmlReporter();
26+
27+
jasmineEnv.addReporter(htmlReporter);
28+
29+
jasmineEnv.specFilter = function (spec) {
30+
return htmlReporter.specFilter(spec);
31+
};
32+
33+
window.onload = function () {
34+
jasmineEnv.execute();
35+
};
36+
})();
37+
</script>
38+
</head>
39+
40+
<body>
41+
</body>
42+
</html>

vendor/jasmine-1.3.1/MIT.LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2008-2011 Pivotal Labs
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)