File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1
1
2
2
( function ( ) {
3
+ // Needed because Mocha's HTML test runner assumes the presence of
4
+ // String#trim.
5
+ if ( ! String . prototype . trim ) {
6
+ String . prototype . trim = String . prototype . strip ;
7
+ }
3
8
4
9
var CONSOLE_LOG_SUPPORTED = ( 'console' in window ) && console . log ;
5
10
var CONSOLE_GROUP_SUPPORTED = ( 'console' in window ) && console . group &&
6
11
console . groupEnd ;
7
12
var CONSOLE_LOG_APPLY = true ;
8
13
14
+ // TODO: Find a different way to log info in IE6.
9
15
function info ( ) {
10
16
if ( CONSOLE_LOG_APPLY ) {
11
17
console . log . apply ( console , arguments ) ;
274
280
return ;
275
281
}
276
282
283
+ $ ( 'mocha' ) . addClassName ( 'done' ) ;
284
+
277
285
if ( ! resultsUrl ) {
278
286
return ;
279
287
}
Original file line number Diff line number Diff line change 17
17
border : 2px solid # eee ;
18
18
}
19
19
20
+ /* Older IEs don't support CANVAS, so we need something other than the progress indicator to show that we're done. */
21
+ # mocha .done {
22
+ border-color : # 090 ;
23
+ }
24
+
20
25
# mocha-stats {
21
26
background : # fff ;
22
27
}
36
41
}
37
42
</ style >
38
43
44
+ <!--[if lt IE 8]>
45
+ <style type="text/css" media="screen">
46
+
47
+ #mocha-stats {
48
+ position: static;
49
+ }
50
+
51
+ #mocha-stats li {
52
+ float: left;
53
+ }
54
+
55
+ </style>
56
+ <![endif]-->
57
+
39
58
< script src ="/prototype.js? <%= @unique_asset_string %> " type ="text/javascript "> </ script >
40
59
< script src ="/js/mocha.js? <%= @unique_asset_string %> " type ="text/javascript "> </ script >
41
60
< script src ="/js/proclaim.js? <%= @unique_asset_string %> " type ="text/javascript "> </ script >
You can’t perform that action at this time.
0 commit comments