Permalink
Browse files

Update to mocha 1.2.x to allow clickable tests in browser reporter.

  • Loading branch information...
1 parent bdabaff commit 8e66efec3066d8bf002638f0819220f2f1463f4e @kmiyashiro kmiyashiro committed Jul 12, 2012
Showing with 622 additions and 149 deletions.
  1. +1 −1 package.json
  2. +49 −3 tests/libs/mocha.css
  3. +572 −145 tests/libs/mocha.js
View
@@ -18,7 +18,7 @@
"expect.js" : "0.1.2"
},
"devDependencies": {
- "mocha" : "1.0.x",
+ "mocha" : "1.2.x",
"requirejs" : "1.0.x"
},
"scripts": {
View
@@ -1,9 +1,19 @@
+
body {
font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
padding: 60px 50px;
}
-#mocha h1, h2 {
+#mocha ul, #mocha li {
+ margin: 0;
+ padding: 0;
+}
+
+#mocha ul {
+ list-style: none;
+}
+
+#mocha h1, #mocha h2 {
margin: 0;
}
@@ -13,6 +23,15 @@ body {
font-weight: 200;
}
+#mocha h1 a {
+ text-decoration: none;
+ color: inherit;
+}
+
+#mocha h1 a:hover {
+ text-decoration: underline;
+}
+
#mocha .suite .suite h1 {
margin-top: 0;
font-size: .8em;
@@ -47,13 +66,40 @@ 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;
+ color: #00d6b2;
+}
+
+#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 {
@@ -133,4 +179,4 @@ code .comment { color: #ddd }
code .init { color: #2F6FAD }
code .string { color: #5890AD }
code .keyword { color: #8A6343 }
-code .number { color: #2F6FAD }
+code .number { color: #2F6FAD }
Oops, something went wrong.

0 comments on commit 8e66efe

Please sign in to comment.