5 * Copyright OpenJS Foundation and other contributors
6 * Released under the MIT license
7 * https://jquery.org/license
10 /** Font Family and Sizes */
12 #qunit-tests, #qunit-header
, #qunit-banner
, #qunit-testrunner-toolbar
, #qunit-filteredTest
, #qunit-userAgent
, #qunit-testresult
{
13 font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri
, Helvetica
, Arial
, sans-serif
;
16 #qunit-testrunner-toolbar, #qunit-filteredTest
, #qunit-userAgent
, #qunit-testresult
, #qunit-tests li
{ font-size: small
; }
17 #qunit-tests { font-size: smaller
; }
22 #qunit-tests, #qunit-header
, #qunit-banner
, #qunit-filteredTest
, #qunit-userAgent
, #qunit-testresult
, #qunit-modulefilter
{
27 /* Style our buttons in a simple way, uninfluenced by the styles
28 the tested app might load. Don't affect buttons in #qunit-fixture!
29 https://github.com/qunitjs/qunit/pull/1395
30 https://github.com/qunitjs/qunit/issues/1437 */
31 #qunit-testrunner-toolbar button
,
32 #qunit-testresult button
{
33 all: unset
; /* best effort, modern browsers only */
37 background-color: buttonface
;
42 /** Fixed headers with scrollable tests */
44 @supports (display: flex
) or
(display: -webkit-box
) {
45 @media
(min-height: 500px) {
55 flex-direction: column
;
69 /** Header (excluding toolbar) */
72 padding: 0.5em 0 0.5em 1em;
75 background-color: #0D3349;
81 border-radius: 5px 5px 0 0;
85 text-decoration: none
;
89 #qunit-header a:hover
,
90 #qunit-header a:focus
{
99 padding: 0.5em 1em 0.5em 1em;
101 background-color: #F4FF77;
105 padding: 0.5em 1em 0.5em 1em;
107 background-color: #2B81AF;
108 text-shadow: rgba
(0, 0, 0, 0.5) 2px 2px 1px;
114 #qunit-testrunner-toolbar {
115 padding: 0.5em 1em 0.5em 1em;
117 background-color: #EEE;
120 #qunit-testrunner-toolbar .clearfix
{
125 #qunit-testrunner-toolbar label
{
126 display: inline-block
;
129 #qunit-testrunner-toolbar input
[type
=checkbox
],
130 #qunit-testrunner-toolbar input
[type
=radio
] {
132 vertical-align: -2px;
135 #qunit-testrunner-toolbar input
[type
=text
] {
136 box-sizing: border-box
;
140 #qunit-testrunner-toolbar button
,
141 #qunit-testresult button
{
142 border-radius: .25em;
143 border: 1px solid
#AAA;
144 background-color: #F8F8F8;
149 #qunit-testrunner-toolbar button:hover
,
150 #qunit-testresult button:hover
{
152 background-color: #FFF;
155 #qunit-testrunner-toolbar button:active
,
156 #qunit-testresult button:active
{
158 background-color: #CCC;
161 #qunit-testrunner-toolbar button:focus
,
162 #qunit-testresult button:focus
{
163 border-color: #2F68DA;
164 /* emulate 2px border without a layout shift */
165 box-shadow: inset
0 0 0 1px #2F68DA
167 #qunit-testrunner-toolbar button:disabled
,
168 #qunit-testresult button:disabled
{
170 background-color: #CCC;
175 #qunit-toolbar-filters {
177 /* aligning right avoids overflows and inefficient use of space
178 around the dropdown menu on narrow viewports */
184 #qunit-modulefilter {
185 display: inline-block
;
191 #qunit-modulefilter {
196 .qunit-url-config label {
200 #qunit-modulefilter-search {
201 box-sizing: border-box
;
203 min-width: min
(400px, 80vw);
206 #qunit-modulefilter-search-container {
209 #qunit-modulefilter-search-container:after
{
218 #qunit-modulefilter-dropdown {
219 /* align with #qunit-modulefilter-search */
220 box-sizing: border-box
;
222 min-width: min
(400px, 80vw);
229 /* ensure that when on a narrow viewports and having only one result,
230 that #qunit-modulefilter-actions fall outside the dropdown rectangle. */
233 border: 1px solid
#AAA;
234 border-top-color: transparent
;
235 border-radius: 0 0 .25em .25em;
237 background-color: #F5F5F5;
241 #qunit-modulefilter-actions {
244 /* align with #qunit-modulefilter-dropdown-list */
245 font: smaller
/1.5em sans-serif
;
247 @media (min-width: 350px) {
248 #qunit-modulefilter-actions {
254 #qunit-modulefilter-dropdown #qunit-modulefilter-actions
> * {
255 box-sizing: border-box
;
261 #qunit-modulefilter-dropdown #qunit-modulefilter-actions
> button
{
266 #qunit-modulefilter-dropdown-list {
269 font: smaller
/1.5em sans-serif
;
272 #qunit-modulefilter-dropdown-list li
{
275 #qunit-modulefilter-dropdown-list .clickable
{
277 padding: 0.25em 0.50em 0.25em 0.15em;
280 text-overflow: ellipsis
;
282 #qunit-modulefilter-dropdown-list .clickable
.checked
{
284 background-color: #E2F0F7;
287 #qunit-modulefilter-dropdown .clickable:hover
{
288 background-color: #FFF;
293 /** Tests: Pass/Fail */
296 list-style-position: inside
;
300 padding: 0.4em 1em 0.4em 1em;
301 border-bottom: 1px solid
#FFF;
302 list-style-position: inside
;
309 #qunit-tests li
.running
,
310 #qunit-tests li
.pass
,
311 #qunit-tests li
.fail
,
312 #qunit-tests li
.skipped
,
313 #qunit-tests li
.aborted
{
317 #qunit-tests.hidepass
{
321 #qunit-tests.hidepass li
.running
,
322 #qunit-tests.hidepass li
.pass:not
(.todo
) {
332 #qunit-tests li strong
{
336 #qunit-tests li
.skipped strong
{
343 text-decoration: underline
;
345 #qunit-tests li
a:hover
,
346 #qunit-tests li
a:focus
{
350 #qunit-tests li
.runtime
{
359 background-color: #FFF;
365 margin: 0.6em 0 0.3em;
373 border-collapse: collapse
;
380 padding: 0 0.5em 0 0;
389 white-space: pre-wrap
;
390 word-wrap: break-word
;
395 background-color: #E0F2BE;
396 text-decoration: none
;
401 background-color: #FFCACA;
402 text-decoration: none
;
407 #qunit-tests b
.counts
{ color: #0D3349; }
408 #qunit-tests b
.passed
{ color: #5E740B; }
409 #qunit-tests b
.failed
{ color: #710909; }
413 background-color: #FFF;
415 list-style-position: inside
;
418 /*** Passing Styles */
423 background-color: #E2F0F7;
426 #qunit-tests .pass
.test-name
{
430 #qunit-tests li li
.pass
{
432 background-color: #FFF;
433 border-left: 10px solid
#C6E746;
436 #qunit-tests .pass
.test-actual
,
437 #qunit-tests .pass
.test-expected
{ color: #999; }
439 #qunit-banner.qunit-pass
{ background-color: #C6E746; }
441 /*** Failing Styles */
445 background-color: #EE5757;
448 #qunit-tests li li
.fail
{
450 background-color: #FFF;
451 border-left: 10px solid
#EE5757;
455 #qunit-tests > li:last-child
{
456 border-radius: 0 0 5px 5px;
459 #qunit-tests .fail
.test-actual
{ color: #EE5757; }
460 #qunit-tests .fail
.test-expected
{ color: #008000; }
462 #qunit-banner.qunit-fail
{ background-color: #EE5757; }
465 /*** Aborted tests */
466 #qunit-tests .aborted
{ color: #000; background-color: orange
; }
467 /*** Skipped tests */
469 #qunit-tests .skipped
{
470 background-color: #EBECE9;
473 #qunit-tests .qunit-todo-label
,
474 #qunit-tests .qunit-skipped-label
{
475 background-color: #F4FF77;
476 display: inline-block
;
481 margin: -0.4em 0.4em -0.4em 0;
484 #qunit-tests .qunit-todo-label
{
485 background-color: #EEE;
492 background-color: #E2F0F7;
494 border-bottom: 1px solid
#FFF;
496 #qunit-testresult a
{
499 #qunit-testresult .clearfix
{
503 #qunit-testresult .module-name
{
506 #qunit-testresult-display {
507 padding: 0.5em 1em 0.5em 1em;
511 #qunit-testresult-controls {
512 padding: 0.5em 1em 0.5em 1em;