diff options
author | John Resig <jeresig@gmail.com> | 2010-09-21 17:12:42 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2010-09-21 17:12:42 -0400 |
commit | e3463946e19f2eb53d909fc2b59cc1c8636d21bd (patch) | |
tree | c9be7cb27f70cd02f0ee4ab2245e79a3d08503d1 /test | |
parent | 1ac3713e7fa187838b04290ada9e4fc56e01f145 (diff) | |
download | jquery-e3463946e19f2eb53d909fc2b59cc1c8636d21bd.tar.gz jquery-e3463946e19f2eb53d909fc2b59cc1c8636d21bd.zip |
Make sure that non-px values aren't manipulated before input to height/width.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index 99bab1fe5..0e91ae159 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1,7 +1,7 @@ module("css"); test("css(String|Hash)", function() { - expect(28); + expect(29); equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"'); @@ -44,6 +44,9 @@ test("css(String|Hash)", function() { equals( parseInt(child.css("fontSize")), 16, "Verify fontSize px set." ); equals( parseInt(child.css("font-size")), 16, "Verify fontSize px set." ); + child.css("height", "100%"); + equals( child[0].style.height, "100%", "Make sure the height is being set correctly." ); + child.attr("class", "em"); equals( parseInt(child.css("fontSize")), 32, "Verify fontSize em set." ); |