diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-12-31 12:30:02 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2012-12-31 12:30:02 -0500 |
commit | abead1c86b75d376544e52cd916031a67caf2c34 (patch) | |
tree | deb5794012c89c8e2ccb8394c032e03f09f17293 /test | |
parent | c9b75df7fba7c96f38efcd60629830e76ce24863 (diff) | |
download | jquery-abead1c86b75d376544e52cd916031a67caf2c34.tar.gz jquery-abead1c86b75d376544e52cd916031a67caf2c34.zip |
Fixes #13088: under IE8, $(selector).attr('style') always return lowercase string
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/attributes.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 84f406d1f..072240049 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -130,8 +130,11 @@ test( "attr(String)", function() { equal( $img.attr("height"), "53", "Retrieve height attribute an an element with display:none." ); // Check for style support - ok( !!~jQuery("#dl").attr("style").indexOf("position"), "Check style attribute getter, also normalize css props to lowercase" ); - ok( !!~jQuery("#foo").attr("style", "position:absolute;").attr("style").indexOf("position"), "Check style setter" ); + var styleElem = jQuery("<div/>").appendTo("#qunit-fixture").css({ + background: "url(UPPERlower.gif)" + }); + ok( !!~styleElem.attr("style").indexOf("UPPERlower.gif"), "Check style attribute getter" ); + ok( !!~styleElem.attr("style", "position:absolute;").attr("style").indexOf("absolute"), "Check style setter" ); // Check value on button element (#1954) var $button = jQuery("<button>text</button>").insertAfter("#button"); |