X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=test%2Funit%2Fcss.js;h=1b2598741076e03f6495e11d49a953a3d7e96ef6;hp=0637071962d9959a5e43cc50ab1c69baf424dc55;hb=e78d3a7e2d47e9796f87c18b76f8178b0bee42c5;hpb=57cc182a40e909868d41f9b1bb405b06138f6cae diff --git a/test/unit/css.js b/test/unit/css.js index 0637071..1b25987 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -320,3 +320,25 @@ test(":visible selector works properly on children with a hidden parent (bug #45 jQuery('#table').css('display', 'none').html('cellcell'); equals(jQuery('#table td:visible').length, 0, "hidden cell children not perceived as visible"); }); + +test("internal ref to elem.runtimeStyle (bug #7608)", function () { + 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(); +});