-
Notifications
You must be signed in to change notification settings - Fork 33
/
spec-runner.html
46 lines (32 loc) · 1.51 KB
/
spec-runner.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
<html>
<head>
<title>ExtJS Unit Test: Sample App Jasmine Tests</title>
<!-- Jasmine -->
<script type="text/javascript" src="../resources/jasmine-standalone-1.2.0/lib/jasmine-1.2.0/jasmine.js"></script>
<script type="text/javascript" src="../resources/jasmine-standalone-1.2.0/lib/jasmine-1.2.0/jasmine-html.js"></script>
<link href="../resources/jasmine-standalone-1.2.0/lib/jasmine-1.2.0/jasmine.css" type="text/css" rel="stylesheet" />
<!-- ExtJS -->
<script type="text/javascript" src="../resources/extjs-4.1.0/ext-all.js"></script>
<!-- Classes to be tested / dependencies -->
<script type="text/javascript" src="../app/MeetupApiUtil.js"></script>
<script type="text/javascript" src="../app/model/Event.js"></script>
<script type="text/javascript" src="../app/store/Events.js"></script>
<script type="text/javascript" src="../app/view/Events.js"></script>
<!-- UNIT TEST CLASSES -->
<script type="text/javascript" src="app/MeetupApiUtil.js"></script>
<script type="text/javascript" src="app/view/Events.js"></script>
</head>
<body>
<div id="test"></div>
<script type="text/javascript">
var jasmineEnv = jasmine.getEnv(),
trivialReporter = new jasmine.TrivialReporter();
jasmineEnv.updateInterval = 1000;
jasmineEnv.addReporter(trivialReporter);
jasmineEnv.specFilter = function(spec) {
return trivialReporter.specFilter(spec);
};
jasmineEnv.execute();
</script>
</body>
</html>