aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu
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/menu
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/menu')
-rw-r--r--tests/unit/menu/events.js24
1 files changed, 6 insertions, 18 deletions
diff --git a/tests/unit/menu/events.js b/tests/unit/menu/events.js
index caac7e741..f03ba333c 100644
--- a/tests/unit/menu/events.js
+++ b/tests/unit/menu/events.js
@@ -54,17 +54,11 @@ QUnit.test( "handle click on custom item menu", function( assert ) {
QUnit.test( "handle blur", function( assert ) {
var ready = assert.async();
assert.expect( 2 );
- var blurHandled = false,
- index = 1,
+ var index = 1,
element = $( "#menu1" ).menu( {
blur: function( event, ui ) {
-
- // Ignore duplicate blur event fired by IE
- if ( !blurHandled ) {
- blurHandled = true;
- assert.equal( event.type, "menublur", "blur event.type is 'menublur'" );
- assert.strictEqual( ui.item[ 0 ], element.children()[ index ], "ui.item" );
- }
+ assert.equal( event.type, "menublur", "blur event.type is 'menublur'" );
+ assert.strictEqual( ui.item[ 0 ], element.children()[ index ], "ui.item" );
}
} );
@@ -80,17 +74,11 @@ QUnit.test( "handle blur", function( assert ) {
QUnit.test( "handle blur via click outside", function( assert ) {
var ready = assert.async();
assert.expect( 2 );
- var blurHandled = false,
- index = 1,
+ var index = 1,
element = $( "#menu1" ).menu( {
blur: function( event, ui ) {
-
- // Ignore duplicate blur event fired by IE
- if ( !blurHandled ) {
- blurHandled = true;
- assert.equal( event.type, "menublur", "blur event.type is 'menublur'" );
- assert.strictEqual( ui.item[ 0 ], element.children()[ index ], "ui.item" );
- }
+ assert.equal( event.type, "menublur", "blur event.type is 'menublur'" );
+ assert.strictEqual( ui.item[ 0 ], element.children()[ index ], "ui.item" );
}
} );