mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
whitespace fixes in unit tests
This commit is contained in:
parent
8099cdce80
commit
9bd9d270f6
@ -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,
|
|
||||||
val = 10;
|
|
||||||
|
|
||||||
jQuery('<div id="bug7608" style="width:200px;border:solid 1px red;">' +
|
var result = true,
|
||||||
'<div id="test" style="width:0%; background:#000;"> </div></div>').appendTo("body");
|
val = 10;
|
||||||
|
|
||||||
try {
|
jQuery('<div id="bug7608" style="width:200px;border:solid 1px red;">' +
|
||||||
// the bug is located within src/css.js
|
'<div id="test" style="width:0%; background:#000;"> </div></div>').appendTo("#main");
|
||||||
jQuery("#bug7608 #test").animate( { width: val }, 1000);
|
|
||||||
|
try {
|
||||||
} catch (e) {
|
// the bug is located within src/css.js
|
||||||
result = false;
|
jQuery("#bug7608 #test").animate( { width: val }, 1000);
|
||||||
}
|
|
||||||
|
} catch (e) {
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
ok( result, "elem.runtimeStyle does not throw exception" );
|
||||||
|
|
||||||
ok( result, "elem.runtimeStyle does not throw exception" );
|
jQuery("#bug7608").remove();
|
||||||
|
|
||||||
jQuery("#bug7608").remove();
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user