File tree 2 files changed +36
-40
lines changed
2 files changed +36
-40
lines changed Original file line number Diff line number Diff line change 33
33
< script src ="../build/raven.test.js "> </ script >
34
34
35
35
< script >
36
- if ( ! window . PHANTOMJS ) {
37
- ( function ( runner ) {
38
- var failed = [ ] ;
36
+ ( function ( runner ) {
37
+ var failed = [ ] ;
39
38
40
- runner . on ( 'fail' , function ( test , err ) {
41
- failed . push ( {
42
- title : test . title ,
43
- fullTitle : test . fullTitle ( ) ,
44
- error : {
45
- message : err . message ,
46
- stack : err . stack
47
- }
48
- } ) ;
49
- } ) ;
39
+ runner . on ( 'fail' , function ( test , err ) {
40
+ failed . push ( {
41
+ title : test . title ,
42
+ fullTitle : test . fullTitle ( ) ,
43
+ error : {
44
+ message : err . message ,
45
+ stack : err . stack
46
+ }
47
+ } ) ;
48
+ } ) ;
50
49
51
- runner . on ( 'end' , function ( ) {
52
- runner . stats . failed = failed ;
53
- if ( typeof global !== "undefined" ) {
54
- global . mochaResults = runner . stats ;
55
- }
56
- } ) ;
57
- } ) ( mocha . run ( ) ) ;
58
- }
50
+ runner . on ( 'end' , function ( ) {
51
+ runner . stats . failed = failed ;
52
+ if ( typeof global !== "undefined" ) {
53
+ global . mochaResults = runner . stats ;
54
+ }
55
+ } ) ;
56
+ } ) ( mocha . run ( ) ) ;
59
57
</ script >
60
58
</ body >
61
59
</ html >
Original file line number Diff line number Diff line change 39
39
< script src ="test.js "> </ script >
40
40
41
41
< script >
42
- if ( ! window . PHANTOMJS ) {
43
- ( function ( runner ) {
44
- window . runner = runner ;
45
- var failed = [ ] ;
42
+ ( function ( runner ) {
43
+ window . runner = runner ;
44
+ var failed = [ ] ;
46
45
47
- runner . on ( 'fail' , function ( test , err ) {
48
- failed . push ( {
49
- title : test . title ,
50
- fullTitle : test . fullTitle ( ) ,
51
- error : {
52
- message : err . message ,
53
- stack : err . stack
54
- }
55
- } ) ;
46
+ runner . on ( 'fail' , function ( test , err ) {
47
+ failed . push ( {
48
+ title : test . title ,
49
+ fullTitle : test . fullTitle ( ) ,
50
+ error : {
51
+ message : err . message ,
52
+ stack : err . stack
53
+ }
56
54
} ) ;
55
+ } ) ;
57
56
58
- runner . on ( 'end' , function ( ) {
59
- runner . stats . failed = failed ;
60
- window . mochaResults = runner . stats ;
61
- } ) ;
62
- } ) ( mocha . run ( ) ) ;
63
- }
57
+ runner . on ( 'end' , function ( ) {
58
+ runner . stats . failed = failed ;
59
+ window . mochaResults = runner . stats ;
60
+ } ) ;
61
+ } ) ( mocha . run ( ) ) ;
64
62
</ script >
65
63
</ body >
66
64
</ html >
You can’t perform that action at this time.
0 commit comments