info@54
|
1 |
/**
|
info@54
|
2 |
* QUnit - A JavaScript Unit Testing Framework
|
info@54
|
3 |
*
|
info@54
|
4 |
* http://docs.jquery.com/QUnit
|
info@54
|
5 |
*
|
info@54
|
6 |
* Copyright (c) 2012 John Resig, Jörn Zaefferer
|
info@54
|
7 |
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
info@54
|
8 |
* or GPL (GPL-LICENSE.txt) licenses.
|
info@54
|
9 |
*/
|
info@54
|
10 |
|
info@54
|
11 |
/** Font Family and Sizes */
|
info@54
|
12 |
|
info@54
|
13 |
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
|
info@54
|
14 |
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
|
info@54
|
15 |
}
|
info@54
|
16 |
|
info@54
|
17 |
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
info@54
|
18 |
#qunit-tests { font-size: smaller; }
|
info@54
|
19 |
|
info@54
|
20 |
|
info@54
|
21 |
/** Resets */
|
info@54
|
22 |
|
info@54
|
23 |
#qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
|
info@54
|
24 |
margin: 0;
|
info@54
|
25 |
padding: 0;
|
info@54
|
26 |
}
|
info@54
|
27 |
|
info@54
|
28 |
|
info@54
|
29 |
/** Header */
|
info@54
|
30 |
|
info@54
|
31 |
#qunit-header {
|
info@54
|
32 |
padding: 0.5em 0 0.5em 1em;
|
info@54
|
33 |
|
info@54
|
34 |
color: #8699a4;
|
info@54
|
35 |
background-color: #0d3349;
|
info@54
|
36 |
|
info@54
|
37 |
font-size: 1.5em;
|
info@54
|
38 |
line-height: 1em;
|
info@54
|
39 |
font-weight: normal;
|
info@54
|
40 |
|
info@54
|
41 |
border-radius: 15px 15px 0 0;
|
info@54
|
42 |
-moz-border-radius: 15px 15px 0 0;
|
info@54
|
43 |
-webkit-border-top-right-radius: 15px;
|
info@54
|
44 |
-webkit-border-top-left-radius: 15px;
|
info@54
|
45 |
}
|
info@54
|
46 |
|
info@54
|
47 |
#qunit-header a {
|
info@54
|
48 |
text-decoration: none;
|
info@54
|
49 |
color: #c2ccd1;
|
info@54
|
50 |
}
|
info@54
|
51 |
|
info@54
|
52 |
#qunit-header a:hover,
|
info@54
|
53 |
#qunit-header a:focus {
|
info@54
|
54 |
color: #fff;
|
info@54
|
55 |
}
|
info@54
|
56 |
|
info@54
|
57 |
#qunit-banner {
|
info@54
|
58 |
height: 5px;
|
info@54
|
59 |
}
|
info@54
|
60 |
|
info@54
|
61 |
#qunit-testrunner-toolbar {
|
info@54
|
62 |
padding: 0.5em 0 0.5em 2em;
|
info@54
|
63 |
color: #5E740B;
|
info@54
|
64 |
background-color: #eee;
|
info@54
|
65 |
}
|
info@54
|
66 |
|
info@54
|
67 |
#qunit-userAgent {
|
info@54
|
68 |
padding: 0.5em 0 0.5em 2.5em;
|
info@54
|
69 |
background-color: #2b81af;
|
info@54
|
70 |
color: #fff;
|
info@54
|
71 |
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
info@54
|
72 |
}
|
info@54
|
73 |
|
info@54
|
74 |
|
info@54
|
75 |
/** Tests: Pass/Fail */
|
info@54
|
76 |
|
info@54
|
77 |
#qunit-tests {
|
info@54
|
78 |
list-style-position: inside;
|
info@54
|
79 |
}
|
info@54
|
80 |
|
info@54
|
81 |
#qunit-tests li {
|
info@54
|
82 |
padding: 0.4em 0.5em 0.4em 2.5em;
|
info@54
|
83 |
border-bottom: 1px solid #fff;
|
info@54
|
84 |
list-style-position: inside;
|
info@54
|
85 |
}
|
info@54
|
86 |
|
info@54
|
87 |
#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
|
info@54
|
88 |
display: none;
|
info@54
|
89 |
}
|
info@54
|
90 |
|
info@54
|
91 |
#qunit-tests li strong {
|
info@54
|
92 |
cursor: pointer;
|
info@54
|
93 |
}
|
info@54
|
94 |
|
info@54
|
95 |
#qunit-tests li a {
|
info@54
|
96 |
padding: 0.5em;
|
info@54
|
97 |
color: #c2ccd1;
|
info@54
|
98 |
text-decoration: none;
|
info@54
|
99 |
}
|
info@54
|
100 |
#qunit-tests li a:hover,
|
info@54
|
101 |
#qunit-tests li a:focus {
|
info@54
|
102 |
color: #000;
|
info@54
|
103 |
}
|
info@54
|
104 |
|
info@54
|
105 |
#qunit-tests ol {
|
info@54
|
106 |
margin-top: 0.5em;
|
info@54
|
107 |
padding: 0.5em;
|
info@54
|
108 |
|
info@54
|
109 |
background-color: #fff;
|
info@54
|
110 |
|
info@54
|
111 |
border-radius: 15px;
|
info@54
|
112 |
-moz-border-radius: 15px;
|
info@54
|
113 |
-webkit-border-radius: 15px;
|
info@54
|
114 |
|
info@54
|
115 |
box-shadow: inset 0px 2px 13px #999;
|
info@54
|
116 |
-moz-box-shadow: inset 0px 2px 13px #999;
|
info@54
|
117 |
-webkit-box-shadow: inset 0px 2px 13px #999;
|
info@54
|
118 |
}
|
info@54
|
119 |
|
info@54
|
120 |
#qunit-tests table {
|
info@54
|
121 |
border-collapse: collapse;
|
info@54
|
122 |
margin-top: .2em;
|
info@54
|
123 |
}
|
info@54
|
124 |
|
info@54
|
125 |
#qunit-tests th {
|
info@54
|
126 |
text-align: right;
|
info@54
|
127 |
vertical-align: top;
|
info@54
|
128 |
padding: 0 .5em 0 0;
|
info@54
|
129 |
}
|
info@54
|
130 |
|
info@54
|
131 |
#qunit-tests td {
|
info@54
|
132 |
vertical-align: top;
|
info@54
|
133 |
}
|
info@54
|
134 |
|
info@54
|
135 |
#qunit-tests pre {
|
info@54
|
136 |
margin: 0;
|
info@54
|
137 |
white-space: pre-wrap;
|
info@54
|
138 |
word-wrap: break-word;
|
info@54
|
139 |
}
|
info@54
|
140 |
|
info@54
|
141 |
#qunit-tests del {
|
info@54
|
142 |
background-color: #e0f2be;
|
info@54
|
143 |
color: #374e0c;
|
info@54
|
144 |
text-decoration: none;
|
info@54
|
145 |
}
|
info@54
|
146 |
|
info@54
|
147 |
#qunit-tests ins {
|
info@54
|
148 |
background-color: #ffcaca;
|
info@54
|
149 |
color: #500;
|
info@54
|
150 |
text-decoration: none;
|
info@54
|
151 |
}
|
info@54
|
152 |
|
info@54
|
153 |
/*** Test Counts */
|
info@54
|
154 |
|
info@54
|
155 |
#qunit-tests b.counts { color: black; }
|
info@54
|
156 |
#qunit-tests b.passed { color: #5E740B; }
|
info@54
|
157 |
#qunit-tests b.failed { color: #710909; }
|
info@54
|
158 |
|
info@54
|
159 |
#qunit-tests li li {
|
info@54
|
160 |
margin: 0.5em;
|
info@54
|
161 |
padding: 0.4em 0.5em 0.4em 0.5em;
|
info@54
|
162 |
background-color: #fff;
|
info@54
|
163 |
border-bottom: none;
|
info@54
|
164 |
list-style-position: inside;
|
info@54
|
165 |
}
|
info@54
|
166 |
|
info@54
|
167 |
/*** Passing Styles */
|
info@54
|
168 |
|
info@54
|
169 |
#qunit-tests li li.pass {
|
info@54
|
170 |
color: #5E740B;
|
info@54
|
171 |
background-color: #fff;
|
info@54
|
172 |
border-left: 26px solid #C6E746;
|
info@54
|
173 |
}
|
info@54
|
174 |
|
info@54
|
175 |
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
|
info@54
|
176 |
#qunit-tests .pass .test-name { color: #366097; }
|
info@54
|
177 |
|
info@54
|
178 |
#qunit-tests .pass .test-actual,
|
info@54
|
179 |
#qunit-tests .pass .test-expected { color: #999999; }
|
info@54
|
180 |
|
info@54
|
181 |
#qunit-banner.qunit-pass { background-color: #C6E746; }
|
info@54
|
182 |
|
info@54
|
183 |
/*** Failing Styles */
|
info@54
|
184 |
|
info@54
|
185 |
#qunit-tests li li.fail {
|
info@54
|
186 |
color: #710909;
|
info@54
|
187 |
background-color: #fff;
|
info@54
|
188 |
border-left: 26px solid #EE5757;
|
info@54
|
189 |
white-space: pre;
|
info@54
|
190 |
}
|
info@54
|
191 |
|
info@54
|
192 |
#qunit-tests > li:last-child {
|
info@54
|
193 |
border-radius: 0 0 15px 15px;
|
info@54
|
194 |
-moz-border-radius: 0 0 15px 15px;
|
info@54
|
195 |
-webkit-border-bottom-right-radius: 15px;
|
info@54
|
196 |
-webkit-border-bottom-left-radius: 15px;
|
info@54
|
197 |
}
|
info@54
|
198 |
|
info@54
|
199 |
#qunit-tests .fail { color: #000000; background-color: #EE5757; }
|
info@54
|
200 |
#qunit-tests .fail .test-name,
|
info@54
|
201 |
#qunit-tests .fail .module-name { color: #000000; }
|
info@54
|
202 |
|
info@54
|
203 |
#qunit-tests .fail .test-actual { color: #EE5757; }
|
info@54
|
204 |
#qunit-tests .fail .test-expected { color: green; }
|
info@54
|
205 |
|
info@54
|
206 |
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
info@54
|
207 |
|
info@54
|
208 |
|
info@54
|
209 |
/** Result */
|
info@54
|
210 |
|
info@54
|
211 |
#qunit-testresult {
|
info@54
|
212 |
padding: 0.5em 0.5em 0.5em 2.5em;
|
info@54
|
213 |
|
info@54
|
214 |
color: #2b81af;
|
info@54
|
215 |
background-color: #D2E0E6;
|
info@54
|
216 |
|
info@54
|
217 |
border-bottom: 1px solid white;
|
info@54
|
218 |
}
|
info@54
|
219 |
|
info@54
|
220 |
/** Fixture */
|
info@54
|
221 |
|
info@54
|
222 |
#qunit-fixture {
|
info@54
|
223 |
position: absolute;
|
info@54
|
224 |
top: -10000px;
|
info@54
|
225 |
left: -10000px;
|
info@54
|
226 |
}
|
info@54
|
227 |
|
info@54
|
228 |
/** Runoff */
|
info@54
|
229 |
|
info@54
|
230 |
#qunit-fixture {
|
info@54
|
231 |
display:none;
|
info@54
|
232 |
}
|