aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-06-06 19:03:10 -0400
committerRick Waldron <waldron.rick@gmail.com>2012-06-06 19:03:10 -0400
commitb9b87d53c681a8337cdbdbe81f8f4e577e5ec277 (patch)
treef0a0b04200353a199f326e272f9439b4606c6f54 /test
parent5d25f78291c11ca26ce70281ee4ac81d1e3d8dd4 (diff)
downloadjquery-b9b87d53c681a8337cdbdbe81f8f4e577e5ec277.tar.gz
jquery-b9b87d53c681a8337cdbdbe81f8f4e577e5ec277.zip
Less letterSpacing .animate() fail in IE. Fixes #8627
Diffstat (limited to 'test')
-rw-r--r--test/unit/css.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 8f17ce74a..b030569fb 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -732,6 +732,14 @@ test("css('width') and css('height') should respect box-sizing, see #11004", fun
equal( el_dis.css("height"), el_dis.css("height", el_dis.css("height")).css("height"), "css('height') is not respecting box-sizing for disconnected element, see #11004");
});
+test("certain css values of 'normal' should be convertable to a number, see #8627", function() {
+ var el = jQuery("<div style='letter-spacing:normal;font-weight:normal;line-height:normal;'>test</div>").appendTo("#qunit-fixture");
+
+ ok( jQuery.isNumeric( parseFloat( el.css("letterSpacing") ) ), "css('letterSpacing') not convertable to number, see #8627" );
+ ok( jQuery.isNumeric( parseFloat( el.css("fontWeight") ) ), "css('fontWeight') not convertable to number, see #8627" );
+ ok( jQuery.isNumeric( parseFloat( el.css("lineHeight") ) ), "css('lineHeight') not convertable to number, see #8627" );
+});
+
test( "cssHooks - expand", function() {
expect( 15 );
var result,