mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: Fix the expando-removal test failure in IE 8
IE 8 gets the expando removed via removeAttribute so the second assertion won't be reached. The expected assertion count had to be updated. Fixes gh-2596
This commit is contained in:
parent
fc87a5cd5b
commit
4b1cff65ce
@ -2726,7 +2726,10 @@ QUnit.test( "Inline event result is returned (#13993)", function( assert ) {
|
||||
} );
|
||||
|
||||
QUnit.test( ".off() removes the expando when there's no more data", function( assert ) {
|
||||
assert.expect( 2 );
|
||||
// Support: IE 8 only
|
||||
// IE 8 gets the expando removed via removeAttribute so the second assertion
|
||||
// won't be reached.
|
||||
assert.expect( document.documentMode < 9 ? 1 : 2 );
|
||||
|
||||
var key,
|
||||
div = jQuery( "<div/>" ).appendTo( "#qunit-fixture" );
|
||||
|
Loading…
Reference in New Issue
Block a user