From: Timmy Willison <4timmywil@gmail.com> Date: Wed, 10 Jan 2018 16:42:24 +0000 (-0500) Subject: Tests: fix weird flaky attributes test in Edge 16 X-Git-Tag: 3.3.0~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=91fb18190e5ab9821e3c74b6aecbb5d197c6c5f6;p=jquery.git Tests: fix weird flaky attributes test in Edge 16 Fixes gh-3867 Close gh-3931 --- diff --git a/test/unit/attributes.js b/test/unit/attributes.js index b446fe1c3..5d88634a0 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -592,7 +592,7 @@ QUnit.test( "removeAttr(String)", function( assert ) { assert.expect( 12 ); var $first; - assert.equal( jQuery( "#mark" ).removeAttr( "class" ).attr( "class" ), undefined, "remove class" ); + assert.equal( jQuery( "
" ).removeAttr( "class" ).attr( "class" ), undefined, "remove class" ); assert.equal( jQuery( "#form" ).removeAttr( "id" ).attr( "id" ), undefined, "Remove id" ); assert.equal( jQuery( "#foo" ).attr( "style", "position:absolute;" ).removeAttr( "style" ).attr( "style" ), undefined, "Check removing style attribute" ); assert.equal( jQuery( "#form" ).attr( "style", "position:absolute;" ).removeAttr( "style" ).attr( "style" ), undefined, "Check removing style attribute on a form" );