diff --git a/test/unit/event.js b/test/unit/event.js index 07b71a15a..2184b3cdf 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -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( "
" ).appendTo( "#qunit-fixture" );