Commit 35aeac13 authored by rwldrn's avatar rwldrn Committed by Colin Snover

Update unit test for #7608 which was leaking timers.

parent d503845d
...@@ -323,22 +323,13 @@ test(":visible selector works properly on children with a hidden parent (bug #45 ...@@ -323,22 +323,13 @@ 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;
jQuery('<div id="bug7608" style="width:200px;border:solid 1px red;">' +
'<div id="test" style="width:0%; background:#000;">&nbsp;</div></div>').appendTo("#main");
try { try {
// the bug is located within src/css.js jQuery("#foo").css( { width: "0%" } ).css("width");
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();
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment