mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Update to latest qunit-composite
This commit is contained in:
parent
c22fb56062
commit
7ec8c7fbbc
@ -7,19 +7,18 @@ QUnit.extend( QUnit, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
for ( var i = 0; i < suites.length; i++ ) {
|
for ( var i = 0; i < suites.length; i++ ) {
|
||||||
(function( suite ) {
|
QUnit.runSuite( suites[i] );
|
||||||
asyncTest( suite, function() {
|
|
||||||
QUnit.runSuite( suite );
|
|
||||||
});
|
|
||||||
}( suites[i] ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QUnit.done(function() {
|
QUnit.done(function() {
|
||||||
this.iframe.style.display = "none";
|
this.iframe.style.display = "none";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
runSuite: function( suite ) {
|
runSuite: function( suite ) {
|
||||||
this.iframe.setAttribute( "src", suite );
|
asyncTest( suite, function() {
|
||||||
|
QUnit.iframe.setAttribute( "src", suite );
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
initIframe: function() {
|
initIframe: function() {
|
||||||
@ -75,12 +74,13 @@ QUnit.testStart(function( data ) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
QUnit.testDone(function() {
|
QUnit.testDone(function() {
|
||||||
var current = QUnit.id( this.config.current.id ),
|
var i,
|
||||||
|
current = QUnit.id( this.config.current.id ),
|
||||||
children = current.children,
|
children = current.children,
|
||||||
src = this.iframe.src;
|
src = this.iframe.src;
|
||||||
|
|
||||||
// undo the auto-expansion of failed tests
|
// 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" ) {
|
if ( children[i].nodeName === "OL" ) {
|
||||||
children[i].style.display = "none";
|
children[i].style.display = "none";
|
||||||
}
|
}
|
||||||
@ -88,7 +88,7 @@ QUnit.testDone(function() {
|
|||||||
|
|
||||||
QUnit.addEvent(current, "dblclick", function( e ) {
|
QUnit.addEvent(current, "dblclick", function( e ) {
|
||||||
var target = e && e.target ? e.target : window.event.srcElement;
|
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;
|
target = target.parentNode;
|
||||||
}
|
}
|
||||||
if ( window.location && target.nodeName.toLowerCase() === "strong" ) {
|
if ( window.location && target.nodeName.toLowerCase() === "strong" ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user