-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.html
101 lines (83 loc) · 2.02 KB
/
tests.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<html>
<head>
<!-- lib -->
<% _.each(lib, function(file) { %>
<script src="/<%= file %>"></script>
<% }); %>
<link rel="stylesheet" href="/lib/bootstrap/bootstrap.noicons.min.css" />
<link rel="stylesheet" href="/lib/fontawesome/css/font-awesome.css" />
<link rel="stylesheet" href="/<%= taskPath %>/static/sidenav.css" />
<link rel="stylesheet" href="/<%= taskPath %>/lib/jasmine/jasmine.css" />
<script src="/<%= taskPath %>/lib/jasmine/jasmine.js"></script>
<script src="/<%= taskPath %>/lib/jasmine/jasmine-html.js"></script>
<!-- src -->
<% _.each(src, function(file) { %>
<script src="/<%= file %>"></script>
<% }); %>
<!-- specs to run -->
<% _.each(run, function(file) { %>
<script src="/<%= file %>"></script>
<% }); %>
<script type="text/javascript">
window.onload = function() {
var rep = new jasmine.HtmlReporter();
var env = jasmine.getEnv();
env.addReporter(rep);
env.specFilter = function(spec) { return rep.specFilter(spec); };
env.execute();
};
</script>
<style>
iframe {
border: 0px;
width: 960px;
height: 100%;
overflow: hidden;
border: none;
}
.affix {
position: fixed;
left: 10px;
height: 100%;
}
.affix-inner {
position: absolute;
top: 0px;
bottom: 30px;
overflow: scroll;
width: 278px;
}
body {
margin-left: 300px;
}
.affix > .affix-inner > .nav.nav-list.sidenav:first-child {
margin-top: 0px;
}
.affix > .affix-inner > .nav.nav-list.sidenav > li > a {
font-size: 12px;
padding: 4px 10px;
}
.sidenav .active i.icon-chevron-right,
.sidenav a:hover i.icon-chevron-right {
background-image: none;
}
</style>
</head>
<body>
<div class="affix">
<div class="affix-inner">
<% _.each(['special', 'specs'], function(group) { %>
<ul class="nav nav-list sidenav">
<% _.each(eval(group), function(name) { %>
<li <%= (name == title ? "class='active'" : '') %>>
<a href="/<%= group %>/<%= name %>">
<i class="icon-chevron-right"></i> <%= name %>
</a>
</li>
<% }); %>
</ul>
<% }); %>
</div>
</div>
</body>
</html>