X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fcss.js;h=555f135756f887a9814ceeb22ebe549819e6c534;hb=35aeac13369c66d21f67cd7524f1cf341e3550ce;hp=1b2598741076e03f6495e11d49a953a3d7e96ef6;hpb=d503845d0cf45632c0d7c3542ffd1b19257a8e5e;p=jquery.git diff --git a/test/unit/css.js b/test/unit/css.js index 1b25987..555f135 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -323,22 +323,13 @@ 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; + var result = true; - jQuery('
' + - '
 
').appendTo("#main"); - try { - // the bug is located within src/css.js - jQuery("#bug7608 #test").animate( { width: val }, 1000); - + jQuery("#foo").css( { width: "0%" } ).css("width"); } catch (e) { result = false; } ok( result, "elem.runtimeStyle does not throw exception" ); - - jQuery("#bug7608").remove(); });