diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-04-22 12:47:33 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-04-22 12:47:33 +0200 |
commit | 7ec8c7fbbca32a38d4afa87392c4e269482370a1 (patch) | |
tree | f4a85a2ffcb5f89e9744da9ead015bc57c85ccd6 | |
parent | c22fb5606292aadb0a5e8a72b5cd5e6def26cdc1 (diff) | |
download | jquery-ui-7ec8c7fbbca32a38d4afa87392c4e269482370a1.tar.gz jquery-ui-7ec8c7fbbca32a38d4afa87392c4e269482370a1.zip |
Update to latest qunit-composite
-rw-r--r-- | tests/unit/qunit-composite.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/unit/qunit-composite.js b/tests/unit/qunit-composite.js index 5b753e2ee..89c47eb29 100644 --- a/tests/unit/qunit-composite.js +++ b/tests/unit/qunit-composite.js @@ -7,19 +7,18 @@ QUnit.extend( QUnit, { }); for ( var i = 0; i < suites.length; i++ ) { - (function( suite ) { - asyncTest( suite, function() { - QUnit.runSuite( suite ); - }); - }( suites[i] ) ); + QUnit.runSuite( suites[i] ); } + QUnit.done(function() { this.iframe.style.display = "none"; }); }, runSuite: function( suite ) { - this.iframe.setAttribute( "src", suite ); + asyncTest( suite, function() { + QUnit.iframe.setAttribute( "src", suite ); + }); }, initIframe: function() { @@ -75,12 +74,13 @@ QUnit.testStart(function( data ) { }); QUnit.testDone(function() { - var current = QUnit.id( this.config.current.id ), + var i, + current = QUnit.id( this.config.current.id ), children = current.children, src = this.iframe.src; // undo the auto-expansion of failed tests - for ( var i = 0; i < children.length; i++ ) { + for ( i = 0; i < children.length; i++ ) { if ( children[i].nodeName === "OL" ) { children[i].style.display = "none"; } @@ -88,7 +88,7 @@ QUnit.testDone(function() { QUnit.addEvent(current, "dblclick", function( e ) { var target = e && e.target ? e.target : window.event.srcElement; - if ( target.nodeName.toLowerCase() == "span" || target.nodeName.toLowerCase() == "b" ) { + if ( target.nodeName.toLowerCase() === "span" || target.nodeName.toLowerCase() === "b" ) { target = target.parentNode; } if ( window.location && target.nodeName.toLowerCase() === "strong" ) { |