diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2015-12-22 13:03:11 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2016-01-06 14:05:11 -0500 |
commit | e3c89685095cfabdd1060b5d9cb57a62f60b7f2f (patch) | |
tree | 5f64b9a32e6f1add52364f1638c86c7671cc41cf /test/unit/attributes.js | |
parent | f21d43a1146256379d7f5b7cb537ed59aeebdeb4 (diff) | |
download | jquery-e3c89685095cfabdd1060b5d9cb57a62f60b7f2f.tar.gz jquery-e3c89685095cfabdd1060b5d9cb57a62f60b7f2f.zip |
Revert "Misc: Drop support for older browsers; update support comments"
This reverts commit 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278.
Diffstat (limited to 'test/unit/attributes.js')
-rw-r--r-- | test/unit/attributes.js | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 9f8502d5d..be905cfd6 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -46,7 +46,11 @@ QUnit.test( "jQuery.propFix integrity test", function( assert ) { "contenteditable": "contentEditable" }; - assert.deepEqual( props, jQuery.propFix, "jQuery.propFix passes integrity check" ); + if ( !jQuery.support.enctype ) { + props.enctype = "encoding"; + } + + deepEqual( props, jQuery.propFix, "jQuery.propFix passes integrity check" ); } ); QUnit.test( "attr(String)", function( assert ) { @@ -588,11 +592,12 @@ QUnit.test( "removeAttr(String)", function( assert ) { assert.ok( false, "Removing contenteditable threw an error (#10429)" ); } - $first = jQuery( "<div Case='mixed'></div>" ); - assert.equal( $first.attr( "Case" ), "mixed", "case of attribute doesn't matter" ); - $first.removeAttr( "Case" ); - assert.equal( $first.attr( "Case" ), undefined, "mixed-case attribute was removed" ); -} ); + $first = jQuery("<div Case='mixed'></div>"); + equal( $first.attr("Case"), "mixed", "case of attribute doesn't matter" ); + $first.removeAttr("Case"); + // IE 6/7 return empty string here, not undefined + ok( !$first.attr("Case"), "mixed-case attribute was removed" ); +}); QUnit.test( "removeAttr(String) in XML", function( assert ) { assert.expect( 7 ); |