From: rwldrn Date: Mon, 10 Jan 2011 18:17:08 +0000 (-0500) Subject: whitespace fixes in unit tests X-Git-Tag: 1.5rc1~54^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9bd9d270f69582b119b1835da4419a900f975b6b;p=jquery.git whitespace fixes in unit tests --- diff --git a/test/unit/css.js b/test/unit/css.js index edc340ceb..3e65b5131 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -322,23 +322,23 @@ 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" ); + expect(1); + + var result = true, + val = 10; + + jQuery('
' + + '
 
').appendTo("#main"); + + 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(); + jQuery("#bug7608").remove(); });