From b9b87d53c681a8337cdbdbe81f8f4e577e5ec277 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Wed, 6 Jun 2012 19:03:10 -0400 Subject: Less letterSpacing .animate() fail in IE. Fixes #8627 --- test/unit/css.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') 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("
test
").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, -- cgit v1.2.3