X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcss.js;h=555f135756f887a9814ceeb22ebe549819e6c534;hb=375b78783825b9adab7a01541faf99f98ef7ecbd;hp=0637071962d9959a5e43cc50ab1c69baf424dc55;hpb=e2941d5a98e91c5f61b200b2763e5fa0eb339365;p=jquery.git diff --git a/test/unit/css.js b/test/unit/css.js index 0637071..555f135 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -320,3 +320,16 @@ 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; + + try { + jQuery("#foo").css( { width: "0%" } ).css("width"); + } catch (e) { + result = false; + } + + ok( result, "elem.runtimeStyle does not throw exception" ); +});