diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2024-05-01 00:54:19 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2024-05-15 00:38:40 +0200 |
commit | bb49bd794bc8ea4238162725b518fb46234f3cf9 (patch) | |
tree | db7b6152daac9f2c6b5fd051ab5d3b7ec7382791 /tests/unit/menu | |
parent | daa6fb55b35065c49c0ffc879c94627bbf85404c (diff) | |
download | jquery-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.js | 24 |
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" ); } } ); |