Skip to content

Commit db5f5b7

Browse files
committed
upgrade to latest version of qunit
1 parent 6e6fe69 commit db5f5b7

6 files changed

Lines changed: 2167 additions & 1319 deletions

File tree

test/qunit/qunit.css

100755100644
Lines changed: 65 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
/**
2-
* QUnit - A JavaScript Unit Testing Framework
1+
/*!
2+
* QUnit 1.14.0
3+
* http://qunitjs.com/
34
*
4-
* http://docs.jquery.com/QUnit
5+
* Copyright 2013 jQuery Foundation and other contributors
6+
* Released under the MIT license
7+
* http://jquery.org/license
58
*
6-
* Copyright (c) 2011 John Resig, Jörn Zaefferer
7-
* Dual licensed under the MIT (MIT-LICENSE.txt)
8-
* or GPL (GPL-LICENSE.txt) licenses.
9-
* Pulled Live from Git Wed Jun 1 17:25:01 UTC 2011
10-
* Last Commit: d4f23f8a882d13b71768503e2db9fa33ef169ba0
9+
* Date: 2014-01-31T16:40Z
1110
*/
1211

1312
/** Font Family and Sizes */
@@ -22,7 +21,7 @@
2221

2322
/** Resets */
2423

25-
#qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
24+
#qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
2625
margin: 0;
2726
padding: 0;
2827
}
@@ -33,27 +32,29 @@
3332
#qunit-header {
3433
padding: 0.5em 0 0.5em 1em;
3534

36-
color: #8699a4;
37-
background-color: #0d3349;
35+
color: #8699A4;
36+
background-color: #0D3349;
3837

3938
font-size: 1.5em;
4039
line-height: 1em;
41-
font-weight: normal;
40+
font-weight: 400;
4241

43-
border-radius: 15px 15px 0 0;
44-
-moz-border-radius: 15px 15px 0 0;
45-
-webkit-border-top-right-radius: 15px;
46-
-webkit-border-top-left-radius: 15px;
42+
border-radius: 5px 5px 0 0;
4743
}
4844

4945
#qunit-header a {
5046
text-decoration: none;
51-
color: #c2ccd1;
47+
color: #C2CCD1;
5248
}
5349

5450
#qunit-header a:hover,
5551
#qunit-header a:focus {
56-
color: #fff;
52+
color: #FFF;
53+
}
54+
55+
#qunit-testrunner-toolbar label {
56+
display: inline-block;
57+
padding: 0 0.5em 0 0.1em;
5758
}
5859

5960
#qunit-banner {
@@ -63,16 +64,20 @@
6364
#qunit-testrunner-toolbar {
6465
padding: 0.5em 0 0.5em 2em;
6566
color: #5E740B;
66-
background-color: #eee;
67+
background-color: #EEE;
68+
overflow: hidden;
6769
}
6870

6971
#qunit-userAgent {
7072
padding: 0.5em 0 0.5em 2.5em;
71-
background-color: #2b81af;
72-
color: #fff;
73+
background-color: #2B81AF;
74+
color: #FFF;
7375
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
7476
}
7577

78+
#qunit-modulefilter-container {
79+
float: right;
80+
}
7681

7782
/** Tests: Pass/Fail */
7883

@@ -82,7 +87,7 @@
8287

8388
#qunit-tests li {
8489
padding: 0.4em 0.5em 0.4em 2.5em;
85-
border-bottom: 1px solid #fff;
90+
border-bottom: 1px solid #FFF;
8691
list-style-position: inside;
8792
}
8893

@@ -96,38 +101,41 @@
96101

97102
#qunit-tests li a {
98103
padding: 0.5em;
99-
color: #c2ccd1;
104+
color: #C2CCD1;
100105
text-decoration: none;
101106
}
102107
#qunit-tests li a:hover,
103108
#qunit-tests li a:focus {
104109
color: #000;
105110
}
106111

107-
#qunit-tests ol {
112+
#qunit-tests li .runtime {
113+
float: right;
114+
font-size: smaller;
115+
}
116+
117+
.qunit-assert-list {
108118
margin-top: 0.5em;
109119
padding: 0.5em;
110120

111-
background-color: #fff;
121+
background-color: #FFF;
112122

113-
border-radius: 15px;
114-
-moz-border-radius: 15px;
115-
-webkit-border-radius: 15px;
123+
border-radius: 5px;
124+
}
116125

117-
box-shadow: inset 0px 2px 13px #999;
118-
-moz-box-shadow: inset 0px 2px 13px #999;
119-
-webkit-box-shadow: inset 0px 2px 13px #999;
126+
.qunit-collapsed {
127+
display: none;
120128
}
121129

122130
#qunit-tests table {
123131
border-collapse: collapse;
124-
margin-top: .2em;
132+
margin-top: 0.2em;
125133
}
126134

127135
#qunit-tests th {
128136
text-align: right;
129137
vertical-align: top;
130-
padding: 0 .5em 0 0;
138+
padding: 0 0.5em 0 0;
131139
}
132140

133141
#qunit-tests td {
@@ -141,68 +149,65 @@
141149
}
142150

143151
#qunit-tests del {
144-
background-color: #e0f2be;
145-
color: #374e0c;
152+
background-color: #E0F2BE;
153+
color: #374E0C;
146154
text-decoration: none;
147155
}
148156

149157
#qunit-tests ins {
150-
background-color: #ffcaca;
158+
background-color: #FFCACA;
151159
color: #500;
152160
text-decoration: none;
153161
}
154162

155163
/*** Test Counts */
156164

157-
#qunit-tests b.counts { color: black; }
165+
#qunit-tests b.counts { color: #000; }
158166
#qunit-tests b.passed { color: #5E740B; }
159167
#qunit-tests b.failed { color: #710909; }
160168

161169
#qunit-tests li li {
162-
margin: 0.5em;
163-
padding: 0.4em 0.5em 0.4em 0.5em;
164-
background-color: #fff;
170+
padding: 5px;
171+
background-color: #FFF;
165172
border-bottom: none;
166173
list-style-position: inside;
167174
}
168175

169176
/*** Passing Styles */
170177

171178
#qunit-tests li li.pass {
172-
color: #5E740B;
173-
background-color: #fff;
174-
border-left: 26px solid #C6E746;
179+
color: #3C510C;
180+
background-color: #FFF;
181+
border-left: 10px solid #C6E746;
175182
}
176183

177184
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
178185
#qunit-tests .pass .test-name { color: #366097; }
179186

180187
#qunit-tests .pass .test-actual,
181-
#qunit-tests .pass .test-expected { color: #999999; }
188+
#qunit-tests .pass .test-expected { color: #999; }
182189

183190
#qunit-banner.qunit-pass { background-color: #C6E746; }
184191

185192
/*** Failing Styles */
186193

187194
#qunit-tests li li.fail {
188195
color: #710909;
189-
background-color: #fff;
190-
border-left: 26px solid #EE5757;
196+
background-color: #FFF;
197+
border-left: 10px solid #EE5757;
198+
white-space: pre;
191199
}
192200

193201
#qunit-tests > li:last-child {
194-
border-radius: 0 0 15px 15px;
195-
-moz-border-radius: 0 0 15px 15px;
196-
-webkit-border-bottom-right-radius: 15px;
197-
-webkit-border-bottom-left-radius: 15px;
202+
border-radius: 0 0 5px 5px;
198203
}
199204

200-
#qunit-tests .fail { color: #000000; background-color: #EE5757; }
205+
#qunit-tests .fail { color: #000; background-color: #EE5757; }
201206
#qunit-tests .fail .test-name,
202-
#qunit-tests .fail .module-name { color: #000000; }
207+
#qunit-tests .fail .module-name { color: #000; }
203208

204209
#qunit-tests .fail .test-actual { color: #EE5757; }
205-
#qunit-tests .fail .test-expected { color: green; }
210+
#qunit-tests .fail .test-expected { color: #008000; }
206211

207212
#qunit-banner.qunit-fail { background-color: #EE5757; }
208213

@@ -212,10 +217,13 @@
212217
#qunit-testresult {
213218
padding: 0.5em 0.5em 0.5em 2.5em;
214219

215-
color: #2b81af;
220+
color: #2B81AF;
216221
background-color: #D2E0E6;
217222

218-
border-bottom: 1px solid white;
223+
border-bottom: 1px solid #FFF;
224+
}
225+
#qunit-testresult .module-name {
226+
font-weight: 700;
219227
}
220228

221229
/** Fixture */
@@ -224,4 +232,6 @@
224232
position: absolute;
225233
top: -10000px;
226234
left: -10000px;
235+
width: 1000px;
236+
height: 1000px;
227237
}

0 commit comments

Comments
 (0)