diff options
author | rwldrn <waldron.rick@gmail.com> | 2011-01-10 13:17:08 -0500 |
---|---|---|
committer | rwldrn <waldron.rick@gmail.com> | 2011-01-10 13:17:08 -0500 |
commit | 9bd9d270f69582b119b1835da4419a900f975b6b (patch) | |
tree | 4bc00d3ecb54f9a0b29236984752e9578c086f83 /test | |
parent | 8099cdce800d45109b961e3521fc0080e9a876c6 (diff) | |
download | jquery-9bd9d270f69582b119b1835da4419a900f975b6b.tar.gz jquery-9bd9d270f69582b119b1835da4419a900f975b6b.zip |
whitespace fixes in unit tests
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 36 |
1 files changed, 18 insertions, 18 deletions
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('<div id="bug7608" style="width:200px;border:solid 1px red;">' + - '<div id="test" style="width:0%; background:#000;"> </div></div>').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('<div id="bug7608" style="width:200px;border:solid 1px red;">' + + '<div id="test" style="width:0%; background:#000;"> </div></div>').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(); }); |