@@ -7,19 +7,18 @@ QUnit.extend( QUnit, {
7
7
} ) ;
8
8
9
9
for ( var i = 0 ; i < suites . length ; i ++ ) {
10
- ( function ( suite ) {
11
- asyncTest ( suite , function ( ) {
12
- QUnit . runSuite ( suite ) ;
13
- } ) ;
14
- } ( suites [ i ] ) ) ;
10
+ QUnit . runSuite ( suites [ i ] ) ;
15
11
}
12
+
16
13
QUnit . done ( function ( ) {
17
14
this . iframe . style . display = "none" ;
18
15
} ) ;
19
16
} ,
20
17
21
18
runSuite : function ( suite ) {
22
- this . iframe . setAttribute ( "src" , suite ) ;
19
+ asyncTest ( suite , function ( ) {
20
+ QUnit . iframe . setAttribute ( "src" , suite ) ;
21
+ } ) ;
23
22
} ,
24
23
25
24
initIframe : function ( ) {
@@ -75,20 +74,21 @@ QUnit.testStart(function( data ) {
75
74
} ) ;
76
75
77
76
QUnit . testDone ( function ( ) {
78
- var current = QUnit . id ( this . config . current . id ) ,
77
+ var i ,
78
+ current = QUnit . id ( this . config . current . id ) ,
79
79
children = current . children ,
80
80
src = this . iframe . src ;
81
81
82
82
// undo the auto-expansion of failed tests
83
- for ( var i = 0 ; i < children . length ; i ++ ) {
83
+ for ( i = 0 ; i < children . length ; i ++ ) {
84
84
if ( children [ i ] . nodeName === "OL" ) {
85
85
children [ i ] . style . display = "none" ;
86
86
}
87
87
}
88
88
89
89
QUnit . addEvent ( current , "dblclick" , function ( e ) {
90
90
var target = e && e . target ? e . target : window . event . srcElement ;
91
- if ( target . nodeName . toLowerCase ( ) == "span" || target . nodeName . toLowerCase ( ) == "b" ) {
91
+ if ( target . nodeName . toLowerCase ( ) === "span" || target . nodeName . toLowerCase ( ) = == "b" ) {
92
92
target = target . parentNode ;
93
93
}
94
94
if ( window . location && target . nodeName . toLowerCase ( ) === "strong" ) {
0 commit comments