mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Tests: Fix test broken by previous cherry-pick
This commit is contained in:
parent
2d6da2da6c
commit
ab1224dd2d
@ -19,11 +19,6 @@
|
|||||||
"requirejs": "~2.1.8",
|
"requirejs": "~2.1.8",
|
||||||
"qunit": "~1.12.0",
|
"qunit": "~1.12.0",
|
||||||
"sinon": "~1.7.3"
|
"sinon": "~1.7.3"
|
||||||
},
|
|
||||||
},
|
|
||||||
"sinon": {
|
|
||||||
"sinon": "**/*.js"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"jquery",
|
"jquery",
|
||||||
|
8
test/unit/effects.js
vendored
8
test/unit/effects.js
vendored
@ -1349,11 +1349,11 @@ test( "callbacks that throw exceptions will be removed (#5684)", function() {
|
|||||||
|
|
||||||
var foo = jQuery( "#foo" );
|
var foo = jQuery( "#foo" );
|
||||||
|
|
||||||
function testException() {
|
function TestException() {
|
||||||
}
|
}
|
||||||
|
|
||||||
foo.animate({ height: 1 }, 1, function() {
|
foo.animate({ height: 1 }, 1, function() {
|
||||||
throw new testException();
|
throw new TestException();
|
||||||
});
|
});
|
||||||
|
|
||||||
// this test thoroughly abuses undocumented methods - please feel free to update
|
// this test thoroughly abuses undocumented methods - please feel free to update
|
||||||
@ -1362,9 +1362,11 @@ test( "callbacks that throw exceptions will be removed (#5684)", function() {
|
|||||||
// make sure that the standard timer loop will NOT run.
|
// make sure that the standard timer loop will NOT run.
|
||||||
jQuery.fx.stop();
|
jQuery.fx.stop();
|
||||||
|
|
||||||
this.clock.tick( 1 );
|
this.clock.tick( 1 );
|
||||||
raises( jQuery.fx.tick, TestException, "Exception was thrown" );
|
raises( jQuery.fx.tick, TestException, "Exception was thrown" );
|
||||||
|
|
||||||
|
// the second call shouldn't
|
||||||
|
jQuery.fx.tick();
|
||||||
|
|
||||||
ok( true, "Test completed without throwing a second exception" );
|
ok( true, "Test completed without throwing a second exception" );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user