diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2015-10-26 11:38:04 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2015-10-26 16:08:59 -0400 |
commit | 689270e9d8333085ae73144d5a21c244d07c8cb3 (patch) | |
tree | a64825e11a94233d2c4e1b37c51f4745d3ad8a54 /test | |
parent | 5c086c3782459307c44397549fef15a87c8b90c4 (diff) | |
download | jquery-689270e9d8333085ae73144d5a21c244d07c8cb3.tar.gz jquery-689270e9d8333085ae73144d5a21c244d07c8cb3.zip |
Attributes: remove flakey test for selected attribute
- The change is already covered by the "checked" test.
Since this test is redundant, just drop it.
(cherry picked from commit 87bd130289c6ed9bfc355c1f8587ae6ce00a4776)
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/attributes.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 79b191663..d5826566f 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -563,7 +563,7 @@ QUnit.test( "attr('tabindex', value)", function( assert ) { } ); QUnit.test( "removeAttr(String)", function( assert ) { - assert.expect( 13 ); + assert.expect( 12 ); var $first; assert.equal( jQuery( "#mark" ).removeAttr( "class" ).attr( "class" ), undefined, "remove class" ); @@ -575,8 +575,6 @@ QUnit.test( "removeAttr(String)", function( assert ) { jQuery( "#check1" ).removeAttr( "checked" ).prop( "checked", true ).removeAttr( "checked" ); assert.equal( document.getElementById( "check1" ).checked, true, "removeAttr should not set checked to false, since the checked attribute does NOT mirror the checked property" ); - jQuery( "#option1b" ).attr( "selected", "selected" ).removeAttr( "selected" ).attr( "selected", "selected" ); - assert.notEqual( document.getElementById( "select1" ).selectedIndex, 1, "Once the selected attribute is dirty, subsequent settings should not select the option (gh-1759)" ); jQuery( "#text1" ).prop( "readOnly", true ).removeAttr( "readonly" ); assert.equal( document.getElementById( "text1" ).readOnly, false, "removeAttr sets boolean properties to false" ); |