Skip to content

Commit

Permalink
whitespace fixes in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Jan 10, 2011
1 parent 8099cdc commit 9bd9d27
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions test/unit/css.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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 () { test("internal ref to elem.runtimeStyle (bug #7608)", function () {
expect(1); expect(1);

var result = true, var result = true,
val = 10; val = 10;

jQuery('<div id="bug7608" style="width:200px;border:solid 1px red;">' + jQuery('<div id="bug7608" style="width:200px;border:solid 1px red;">' +
'<div id="test" style="width:0%; background:#000;">&nbsp;</div></div>').appendTo("body"); '<div id="test" style="width:0%; background:#000;">&nbsp;</div></div>').appendTo("#main");

try { try {
// the bug is located within src/css.js // the bug is located within src/css.js
jQuery("#bug7608 #test").animate( { width: val }, 1000); jQuery("#bug7608 #test").animate( { width: val }, 1000);

} catch (e) { } catch (e) {
result = false; result = false;
} }

ok( result, "elem.runtimeStyle does not throw exception" ); ok( result, "elem.runtimeStyle does not throw exception" );


jQuery("#bug7608").remove(); jQuery("#bug7608").remove();
}); });

0 comments on commit 9bd9d27

Please sign in to comment.