X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcss.js;h=3e65b51315918e4230f66a121c6069e2bd620a3e;hb=9bd9d270f69582b119b1835da4419a900f975b6b;hp=fbbf937ca6e2b54ec5927c073f001b49876f0668;hpb=3e0cc815043c2425819743e907a0ce263a7ce164;p=jquery.git diff --git a/test/unit/css.js b/test/unit/css.js index fbbf937..3e65b51 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(); +});