Skip to content

Commit 7ec8c7f

Browse files
committed
Update to latest qunit-composite
1 parent c22fb56 commit 7ec8c7f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/unit/qunit-composite.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,18 @@ QUnit.extend( QUnit, {
77
});
88

99
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] );
1511
}
12+
1613
QUnit.done(function() {
1714
this.iframe.style.display = "none";
1815
});
1916
},
2017

2118
runSuite: function( suite ) {
22-
this.iframe.setAttribute( "src", suite );
19+
asyncTest( suite, function() {
20+
QUnit.iframe.setAttribute( "src", suite );
21+
});
2322
},
2423

2524
initIframe: function() {
@@ -75,20 +74,21 @@ QUnit.testStart(function( data ) {
7574
});
7675

7776
QUnit.testDone(function() {
78-
var current = QUnit.id( this.config.current.id ),
77+
var i,
78+
current = QUnit.id( this.config.current.id ),
7979
children = current.children,
8080
src = this.iframe.src;
8181

8282
// undo the auto-expansion of failed tests
83-
for ( var i = 0; i < children.length; i++ ) {
83+
for ( i = 0; i < children.length; i++ ) {
8484
if ( children[i].nodeName === "OL" ) {
8585
children[i].style.display = "none";
8686
}
8787
}
8888

8989
QUnit.addEvent(current, "dblclick", function( e ) {
9090
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" ) {
9292
target = target.parentNode;
9393
}
9494
if ( window.location && target.nodeName.toLowerCase() === "strong" ) {

0 commit comments

Comments
 (0)