From 98dd622a55e672ef972cdd0854e7cd2f2db4e8ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Wed, 15 Mar 2023 12:21:35 +0100 Subject: [PATCH] Tests: Skip jQuery.Deferred.exceptionHook tests in IE 9 The non-deprecated test was already skipped there, the deprecated one is now skipped as well. Ref gh-5212 --- test/unit/deferred.js | 1 + test/unit/deprecated.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/unit/deferred.js b/test/unit/deferred.js index 9a8d4152f..f40e0e8e7 100644 --- a/test/unit/deferred.js +++ b/test/unit/deferred.js @@ -619,6 +619,7 @@ QUnit[ window.console ? "test" : "skip" ]( "jQuery.Deferred.exceptionHook", func defer.resolve(); } ); +// Support: IE 9 only // Test fails in IE9 but is skipped there because console is not active QUnit[ window.console ? "test" : "skip" ]( "jQuery.Deferred.exceptionHook with stack hooks", function( assert ) { diff --git a/test/unit/deprecated.js b/test/unit/deprecated.js index 4d8d00f00..e88a7c5cf 100644 --- a/test/unit/deprecated.js +++ b/test/unit/deprecated.js @@ -662,7 +662,10 @@ QUnit.test( "trim", function( assert ) { } ); if ( includesModule( "deferred" ) ) { - QUnit.test( "jQuery.Deferred.exceptionHook with stack hooks", function( assert ) { + + // Support: IE 9 only + // Test fails in IE9 but is skipped there because console is not active + QUnit[ window.console ? "test" : "skip" ]( "jQuery.Deferred.exceptionHook with stack hooks", function( assert ) { assert.expect( 2 );