Permalink
Browse files

update mocha

  • Loading branch information...
1 parent f59b258 commit 64c226c27657054e03064d4decf358a47291666c @tj committed May 4, 2012
Showing with 725 additions and 85 deletions.
  1. +29 −1 test/browser/mocha.css
  2. +696 −84 test/browser/mocha.js
View
@@ -9,11 +9,13 @@ body {
}
#mocha h1 {
+ margin-top: 15px;
font-size: 1em;
font-weight: 200;
}
#mocha .suite .suite h1 {
+ margin-top: 0;
font-size: .8em;
}
@@ -46,13 +48,39 @@ body {
font-family: arial;
}
+#mocha .test.pass.medium .duration {
+ background: #C09853;
+}
+
+#mocha .test.pass.slow .duration {
+ background: #B94A48;
+}
+
#mocha .test.pass::before {
content: '';
font-size: 12px;
display: block;
float: left;
margin-right: 5px;
- color: #00c41c;
+}
+
+#mocha .test.pass .duration {
+ font-size: 9px;
+ margin-left: 5px;
+ padding: 2px 5px;
+ color: white;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
+ -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ -ms-border-radius: 5px;
+ -o-border-radius: 5px;
+ border-radius: 5px;
+}
+
+#mocha .test.pass.fast .duration {
+ display: none;
}
#mocha .test.pending {
Oops, something went wrong.

0 comments on commit 64c226c

Please sign in to comment.