qunit.css 4.5 KB

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