Skip to content

Commit 4b1cff6

Browse files
committed
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
1 parent fc87a5c commit 4b1cff6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/unit/event.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2726,7 +2726,10 @@ QUnit.test( "Inline event result is returned (#13993)", function( assert ) {
27262726
} );
27272727

27282728
QUnit.test( ".off() removes the expando when there's no more data", function( assert ) {
2729-
assert.expect( 2 );
2729+
// Support: IE 8 only
2730+
// IE 8 gets the expando removed via removeAttribute so the second assertion
2731+
// won't be reached.
2732+
assert.expect( document.documentMode < 9 ? 1 : 2 );
27302733

27312734
var key,
27322735
div = jQuery( "<div/>" ).appendTo( "#qunit-fixture" );

0 commit comments

Comments
 (0)