From 4b1cff65ce6014f7d35f33d222bddd67f74a6f8d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Mon, 14 Sep 2015 20:22:19 +0200 Subject: [PATCH] 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 --- test/unit/event.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" ); -- 2.39.5