Skip to content

Commit

Permalink
Tests: Skip jQuery.Deferred.exceptionHook tests in IE 9
Browse files Browse the repository at this point in the history
The non-deprecated test was already skipped there, the deprecated
one is now skipped as well.

Ref gh-5212
  • Loading branch information
mgol committed Mar 15, 2023
1 parent 1813921 commit 98dd622
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/unit/deferred.js
Expand Up @@ -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 ) {

Expand Down
5 changes: 4 additions & 1 deletion test/unit/deprecated.js
Expand Up @@ -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 );

Expand Down

0 comments on commit 98dd622

Please sign in to comment.