aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/button
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-01 00:54:19 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-15 00:38:40 +0200
commitbb49bd794bc8ea4238162725b518fb46234f3cf9 (patch)
treedb7b6152daac9f2c6b5fd051ab5d3b7ec7382791 /tests/unit/button
parentdaa6fb55b35065c49c0ffc879c94627bbf85404c (diff)
downloadjquery-ui-bb49bd794bc8ea4238162725b518fb46234f3cf9.tar.gz
jquery-ui-bb49bd794bc8ea4238162725b518fb46234f3cf9.zip
All: Drop support for IE & some other browsers (but mostly IE)
Closes gh-2249
Diffstat (limited to 'tests/unit/button')
-rw-r--r--tests/unit/button/core.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/button/core.js b/tests/unit/button/core.js
index 7b696631e..ae4b870ed 100644
--- a/tests/unit/button/core.js
+++ b/tests/unit/button/core.js
@@ -2,7 +2,6 @@ define( [
"qunit",
"jquery",
"lib/helper",
- "ui/safe-active-element",
"ui/widgets/button"
], function( QUnit, $, helper ) {
"use strict";
@@ -17,10 +16,10 @@ QUnit.test( "Disabled button loses focus", function( assert ) {
element.trigger( "focus" );
setTimeout( function() {
- assert.equal( element[ 0 ], $.ui.safeActiveElement( document ), "Button is focused" );
+ assert.equal( element[ 0 ], document.activeElement, "Button is focused" );
element.button( "disable" );
- assert.notEqual( element[ 0 ], $.ui.safeActiveElement( document ), "Button has had focus removed" );
+ assert.notEqual( element[ 0 ], document.activeElement, "Button has had focus removed" );
ready();
} );
} );