aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/attributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/attributes.js')
-rw-r--r--test/unit/attributes.js17
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 );