diff --git a/test/unit/support.js b/test/unit/support.js index 46ac22242..40acf2cc2 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -245,13 +245,15 @@ testIframeWithCallback( "A background on the testElement does not cause IE8 to c }; } - test("Verify that the support tests resolve as expected per browser", function() { - for ( var i in expected ) { - if ( jQuery.isAjax || i !== "ajax" && i !== "cors" ) { - equal( jQuery.support[i], expected[i], "jQuery.support['" + i + "']: " + jQuery.support[i] + ", expected['" + i + "']: " + expected[i]); + if ( expected ) { + test("Verify that the support tests resolve as expected per browser", function() { + for ( var i in expected ) { + if ( jQuery.ajax || i !== "ajax" && i !== "cors" ) { + equal( jQuery.support[i], expected[i], "jQuery.support['" + i + "']: " + jQuery.support[i] + ", expected['" + i + "']: " + expected[i]); + } } - } - }); + }); + } })();