X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcss.js;h=555f135756f887a9814ceeb22ebe549819e6c534;hb=2e2d5e9db5ee9886644d75954d327e6d284e2da8;hp=edc340cebe6cd3417ede780aa8150d8ec63b0c09;hpb=8099cdce800d45109b961e3521fc0080e9a876c6;p=jquery.git diff --git a/test/unit/css.js b/test/unit/css.js index edc340c..555f135 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1,4 +1,4 @@ -module("css"); +module("css", { teardown: moduleTeardown }); test("css(String|Hash)", function() { expect(41); @@ -322,23 +322,14 @@ test(":visible selector works properly on children with a hidden parent (bug #45 }); test("internal ref to elem.runtimeStyle (bug #7608)", function () { - expect(1); - - var result = true, - val = 10; - - jQuery('
' + - '
 
').appendTo("body"); - - try { - // the bug is located within src/css.js - jQuery("#bug7608 #test").animate( { width: val }, 1000); - - } catch (e) { - result = false; - } - - ok( result, "elem.runtimeStyle does not throw exception" ); - - jQuery("#bug7608").remove(); + expect(1); + var result = true; + + try { + jQuery("#foo").css( { width: "0%" } ).css("width"); + } catch (e) { + result = false; + } + + ok( result, "elem.runtimeStyle does not throw exception" ); });