Fixes a bug that prevented headers from being set in an ajaxSend callback. Unit test...
[jquery.git] / test / unit / css.js
index 0637071..555f135 100644 (file)
@@ -320,3 +320,16 @@ test(":visible selector works properly on children with a hidden parent (bug #45
        jQuery('#table').css('display', 'none').html('<tr><td>cell</td><td>cell</td></tr>');
        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" );
+});