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:
Michał Gołębiowski 2015-09-14 20:22:19 +02:00
parent fc87a5cd5b
commit 4b1cff65ce

View File

@ -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" );