From: rwldrn Date: Mon, 10 Jan 2011 18:17:08 +0000 (-0500) Subject: whitespace fixes in unit tests X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=9bd9d270f69582b119b1835da4419a900f975b6b whitespace fixes in unit tests --- diff --git a/test/unit/css.js b/test/unit/css.js index edc340c..3e65b51 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(); });