Skip to content

Commit dffcba0

Browse files
committed
Update to latest QUnit.
1 parent ea58cd5 commit dffcba0

File tree

3 files changed

+495
-270
lines changed

3 files changed

+495
-270
lines changed

external/qunit.css

Lines changed: 131 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,148 @@
1+
/** Font Family and Sizes */
12

2-
ol#qunit-tests {
3-
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
4-
margin:0;
5-
padding:0;
6-
list-style-position:inside;
7-
8-
font-size: smaller;
3+
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
4+
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
95
}
10-
ol#qunit-tests li{
11-
padding:0.4em 0.5em 0.4em 2.5em;
12-
border-bottom:1px solid #fff;
13-
font-size:small;
14-
list-style-position:inside;
6+
7+
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
8+
#qunit-tests { font-size: smaller; }
9+
10+
11+
/** Resets */
12+
13+
#qunit-tests, #qunit-tests li ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
14+
margin: 0;
15+
padding: 0;
1516
}
16-
ol#qunit-tests li ol{
17-
box-shadow: inset 0px 2px 13px #999;
18-
-moz-box-shadow: inset 0px 2px 13px #999;
19-
-webkit-box-shadow: inset 0px 2px 13px #999;
20-
margin-top:0.5em;
21-
margin-left:0;
22-
padding:0.5em;
23-
background-color:#fff;
24-
border-radius:15px;
25-
-moz-border-radius: 15px;
26-
-webkit-border-radius: 15px;
17+
18+
19+
/** Header */
20+
21+
#qunit-header {
22+
padding: 0.5em 0 0.5em 1em;
23+
24+
color: #fff;
25+
text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px;
26+
background-color: #0d3349;
27+
28+
border-radius: 15px 15px 0 0;
29+
-moz-border-radius: 15px 15px 0 0;
30+
-webkit-border-top-right-radius: 15px;
31+
-webkit-border-top-left-radius: 15px;
2732
}
28-
ol#qunit-tests li li{
29-
border-bottom:none;
30-
margin:0.5em;
31-
background-color:#fff;
32-
list-style-position: inside;
33-
padding:0.4em 0.5em 0.4em 0.5em;
33+
34+
#qunit-banner {
35+
height: 5px;
3436
}
3537

36-
ol#qunit-tests li li.pass{
37-
border-left:26px solid #C6E746;
38-
background-color:#fff;
39-
color:#5E740B;
40-
}
41-
ol#qunit-tests li li.fail{
42-
border-left:26px solid #EE5757;
43-
background-color:#fff;
44-
color:#710909;
38+
#qunit-testrunner-toolbar {
39+
padding: 0em 0 0.5em 2em;
4540
}
46-
ol#qunit-tests li.pass{
47-
background-color:#D2E0E6;
48-
color:#528CE0;
41+
42+
#qunit-userAgent {
43+
padding: 0.5em 0 0.5em 2.5em;
44+
background-color: #2b81af;
45+
color: #fff;
46+
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
4947
}
50-
ol#qunit-tests li.fail{
51-
background-color:#EE5757;
52-
color:#000;
48+
49+
50+
/** Tests: Pass/Fail */
51+
52+
#qunit-tests {
53+
list-style-position: inside;
5354
}
54-
ol#qunit-tests li strong {
55-
cursor:pointer;
55+
56+
#qunit-tests li {
57+
padding: 0.4em 0.5em 0.4em 2.5em;
58+
border-bottom: 1px solid #fff;
59+
list-style-position: inside;
5660
}
57-
h1#qunit-header{
58-
background-color:#0d3349;
59-
margin:0;
60-
padding:0.5em 0 0.5em 1em;
61-
color:#fff;
62-
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
63-
border-top-right-radius:15px;
64-
border-top-left-radius:15px;
65-
-moz-border-radius-topright:15px;
66-
-moz-border-radius-topleft:15px;
67-
-webkit-border-top-right-radius:15px;
68-
-webkit-border-top-left-radius:15px;
69-
text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px;
61+
62+
#qunit-tests li strong {
63+
cursor: pointer;
7064
}
71-
h2#qunit-banner{
72-
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
73-
height:5px;
74-
margin:0;
75-
padding:0;
65+
66+
#qunit-tests li ol {
67+
margin-top: 0.5em;
68+
padding: 0.5em;
69+
70+
background-color: #fff;
71+
72+
border-radius: 15px;
73+
-moz-border-radius: 15px;
74+
-webkit-border-radius: 15px;
75+
76+
box-shadow: inset 0px 2px 13px #999;
77+
-moz-box-shadow: inset 0px 2px 13px #999;
78+
-webkit-box-shadow: inset 0px 2px 13px #999;
7679
}
77-
h2#qunit-banner.qunit-pass{
78-
background-color:#C6E746;
80+
81+
#qunit-tests li li {
82+
margin: 0.5em;
83+
padding: 0.4em 0.5em 0.4em 0.5em;
84+
background-color: #fff;
85+
border-bottom: none;
86+
list-style-position: inside;
7987
}
80-
h2#qunit-banner.qunit-fail, #qunit-testrunner-toolbar {
81-
background-color:#EE5757;
88+
89+
/*** Passing Styles */
90+
91+
#qunit-tests li li.pass {
92+
color: #5E740B;
93+
background-color: #fff;
94+
border-left: 26px solid #C6E746;
8295
}
83-
#qunit-testrunner-toolbar {
84-
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
85-
padding:0;
86-
/*width:80%;*/
87-
padding:0em 0 0.5em 2em;
88-
font-size: small;
96+
97+
#qunit-tests li.pass { color: #528CE0; background-color: #D2E0E6; }
98+
#qunit-tests li.pass span.test-name { color: #366097; }
99+
100+
#qunit-tests li li.pass span.test-actual,
101+
#qunit-tests li li.pass span.test-expected { color: #999999; }
102+
103+
strong b.pass { color: #5E740B; }
104+
105+
#qunit-banner.qunit-pass { background-color: #C6E746; }
106+
107+
/*** Failing Styles */
108+
109+
#qunit-tests li li.fail {
110+
color: #710909;
111+
background-color: #fff;
112+
border-left: 26px solid #EE5757;
89113
}
90-
h2#qunit-userAgent {
91-
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
92-
background-color:#2b81af;
93-
margin:0;
94-
padding:0;
95-
color:#fff;
96-
font-size: small;
97-
padding:0.5em 0 0.5em 2.5em;
98-
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
114+
115+
#qunit-tests li.fail { color: #000000; background-color: #EE5757; }
116+
#qunit-tests li.fail span.test-name,
117+
#qunit-tests li.fail span.module-name { color: #000000; }
118+
119+
#qunit-tests li li.fail span.test-actual { color: #EE5757; }
120+
#qunit-tests li li.fail span.test-expected { color: green; }
121+
122+
strong b.fail { color: #710909; }
123+
124+
#qunit-banner.qunit-fail,
125+
#qunit-testrunner-toolbar { background-color: #EE5757; }
126+
127+
128+
/** Footer */
129+
130+
#qunit-testresult {
131+
padding: 0.5em 0.5em 0.5em 2.5em;
132+
133+
color: #2b81af;
134+
background-color: #D2E0E6;
135+
136+
border-radius: 0 0 15px 15px;
137+
-moz-border-radius: 0 0 15px 15px;
138+
-webkit-border-bottom-right-radius: 15px;
139+
-webkit-border-bottom-left-radius: 15px;
99140
}
100-
p#qunit-testresult{
101-
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
102-
margin:0;
103-
font-size: small;
104-
color:#2b81af;
105-
border-bottom-right-radius:15px;
106-
border-bottom-left-radius:15px;
107-
-moz-border-radius-bottomright:15px;
108-
-moz-border-radius-bottomleft:15px;
109-
-webkit-border-bottom-right-radius:15px;
110-
-webkit-border-bottom-left-radius:15px;
111-
background-color:#D2E0E6;
112-
padding:0.5em 0.5em 0.5em 2.5em;
141+
142+
/** Fixture */
143+
144+
#qunit-fixture {
145+
position: absolute;
146+
top: -10000px;
147+
left: -10000px;
113148
}
114-
strong b.fail{
115-
color:#710909;
116-
}
117-
strong b.pass{
118-
color:#5E740B;
119-
}

0 commit comments

Comments
 (0)