qunit.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. /**
  2. * QUnit v1.9.0 - A JavaScript Unit Testing Framework
  3. *
  4. * http://docs.jquery.com/QUnit
  5. *
  6. * Copyright (c) 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: 5px 5px 0 0;
  30. -moz-border-radius: 5px 5px 0 0;
  31. -webkit-border-top-right-radius: 5px;
  32. -webkit-border-top-left-radius: 5px;
  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-testrunner-toolbar label {
  43. display: inline-block;
  44. padding: 0 .5em 0 .1em;
  45. }
  46. #qunit-banner {
  47. height: 5px;
  48. }
  49. #qunit-testrunner-toolbar {
  50. padding: 0.5em 0 0.5em 2em;
  51. color: #5E740B;
  52. background-color: #eee;
  53. }
  54. #qunit-userAgent {
  55. padding: 0.5em 0 0.5em 2.5em;
  56. background-color: #2b81af;
  57. color: #fff;
  58. text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
  59. }
  60. /** Tests: Pass/Fail */
  61. #qunit-tests {
  62. list-style-position: inside;
  63. }
  64. #qunit-tests li {
  65. padding: 0.4em 0.5em 0.4em 2.5em;
  66. border-bottom: 1px solid #fff;
  67. list-style-position: inside;
  68. }
  69. #qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
  70. display: none;
  71. }
  72. #qunit-tests li strong {
  73. cursor: pointer;
  74. }
  75. #qunit-tests li a {
  76. padding: 0.5em;
  77. color: #c2ccd1;
  78. text-decoration: none;
  79. }
  80. #qunit-tests li a:hover,
  81. #qunit-tests li a:focus {
  82. color: #000;
  83. }
  84. #qunit-tests ol {
  85. margin-top: 0.5em;
  86. padding: 0.5em;
  87. background-color: #fff;
  88. border-radius: 5px;
  89. -moz-border-radius: 5px;
  90. -webkit-border-radius: 5px;
  91. }
  92. #qunit-tests table {
  93. border-collapse: collapse;
  94. margin-top: .2em;
  95. }
  96. #qunit-tests th {
  97. text-align: right;
  98. vertical-align: top;
  99. padding: 0 .5em 0 0;
  100. }
  101. #qunit-tests td {
  102. vertical-align: top;
  103. }
  104. #qunit-tests pre {
  105. margin: 0;
  106. white-space: pre-wrap;
  107. word-wrap: break-word;
  108. }
  109. #qunit-tests del {
  110. background-color: #e0f2be;
  111. color: #374e0c;
  112. text-decoration: none;
  113. }
  114. #qunit-tests ins {
  115. background-color: #ffcaca;
  116. color: #500;
  117. text-decoration: none;
  118. }
  119. /*** Test Counts */
  120. #qunit-tests b.counts { color: black; }
  121. #qunit-tests b.passed { color: #5E740B; }
  122. #qunit-tests b.failed { color: #710909; }
  123. #qunit-tests li li {
  124. padding: 5px;
  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: #3c510c;
  132. background-color: #fff;
  133. border-left: 10px 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: 10px solid #EE5757;
  145. white-space: pre;
  146. }
  147. #qunit-tests > li:last-child {
  148. border-radius: 0 0 5px 5px;
  149. -moz-border-radius: 0 0 5px 5px;
  150. -webkit-border-bottom-right-radius: 5px;
  151. -webkit-border-bottom-left-radius: 5px;
  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. #qunit-testresult .module-name {
  167. font-weight: bold;
  168. }
  169. /** Fixture */
  170. #qunit-fixture {
  171. position: absolute;
  172. top: -10000px;
  173. left: -10000px;
  174. width: 1000px;
  175. height: 1000px;
  176. }