diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2021-04-09 23:36:00 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2024-05-15 00:38:30 +0200 |
commit | daa6fb55b35065c49c0ffc879c94627bbf85404c (patch) | |
tree | c1c90efc224aa82614758262b4e308cc8354ac65 /tests/unit/dialog | |
parent | ac8b1e4eee8682e6825730c4823036a90031edad (diff) | |
download | jquery-ui-daa6fb55b35065c49c0ffc879c94627bbf85404c.tar.gz jquery-ui-daa6fb55b35065c49c0ffc879c94627bbf85404c.zip |
All: Drop support for jQueries different than the latest for each major
Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4.
Closes gh-2249
Diffstat (limited to 'tests/unit/dialog')
-rw-r--r-- | tests/unit/dialog/methods.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/unit/dialog/methods.js b/tests/unit/dialog/methods.js index 90a6a6455..1de32194b 100644 --- a/tests/unit/dialog/methods.js +++ b/tests/unit/dialog/methods.js @@ -217,8 +217,6 @@ QUnit.test( "#8958: dialog can be opened while opening", function( assert ) { var ready = assert.async( 3 ); assert.expect( 1 ); - var jQuery1Dot8 = jQuery.fn.jquery.indexOf( "1.8" ) === 0; - var element = $( "<div>" ).dialog( { autoOpen: false, modal: true, @@ -248,15 +246,6 @@ QUnit.test( "#8958: dialog can be opened while opening", function( assert ) { // handle a call to the open() method during the process of the dialog // being opened. .on( "blur", function() { - - // Support: jQuery 1.8 only - // The test never fully worked in jQuery 1.8 since the input's blur - // handler never fired. It's only been uncovered when `ready()` calls - // have been added to all handlers. Skip this handler in jQuery 1.8. - if ( jQuery1Dot8 ) { - return; - } - element.dialog( "open" ); // Detach the handlers to avoid firing them outside of this @@ -266,13 +255,6 @@ QUnit.test( "#8958: dialog can be opened while opening", function( assert ) { ready(); } ) .trigger( "focus" ); - - // Support: jQuery 1.8 only - // Account for the skipped `ready()` call above. To make sure the count - // is constant, call it here instead. - if ( jQuery1Dot8 ) { - ready(); - } } ); QUnit.test( "#5531: dialog width should be at least minWidth on creation", function( assert ) { |