]> source.dussan.org Git - jquery.git/commitdiff
Tests: fix weird flaky attributes test in Edge 16
authorTimmy Willison <4timmywil@gmail.com>
Wed, 10 Jan 2018 16:42:24 +0000 (11:42 -0500)
committerTimmy Willison <4timmywil@gmail.com>
Tue, 16 Jan 2018 15:18:27 +0000 (10:18 -0500)
Fixes gh-3867
Close gh-3931

test/unit/attributes.js

index b446fe1c3fb58cc5879ad81aaaedf4ae301fdc0c..5d88634a0b672e1f5a52010f47430e8ca5a461da 100644 (file)
@@ -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( "<div class='hello' />" ).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" );