diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-07-22 16:04:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 16:04:47 +0200 |
commit | b61b16b5a89ee27b30efdf7635d897af810af130 (patch) | |
tree | d2fc081ab5465ac1cd8e12072e92e9245dda8b08 /tests | |
parent | 086c304218b0f6e24e8f9ea7d76c75d192977abd (diff) | |
download | jquery-ui-b61b16b5a89ee27b30efdf7635d897af810af130.tar.gz jquery-ui-b61b16b5a89ee27b30efdf7635d897af810af130.zip |
All: Drop support for jQuery 1.7
Closes gh-1923
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/qunit.js | 1 | ||||
-rw-r--r-- | tests/unit/accordion/core.js | 2 | ||||
-rw-r--r-- | tests/unit/checkboxradio/core.js | 26 | ||||
-rw-r--r-- | tests/unit/subsuite.js | 1 |
4 files changed, 11 insertions, 19 deletions
diff --git a/tests/lib/qunit.js b/tests/lib/qunit.js index 1c1d210d7..939e5b01c 100644 --- a/tests/lib/qunit.js +++ b/tests/lib/qunit.js @@ -20,7 +20,6 @@ QUnit.config.urlConfig.push( { id: "jquery", label: "jQuery version", value: [ - "1.7.0", "1.7.1", "1.7.2", "1.8.0", "1.8.1", "1.8.2", "1.8.3", "1.9.0", "1.9.1", "1.10.0", "1.10.1", "1.10.2", diff --git a/tests/unit/accordion/core.js b/tests/unit/accordion/core.js index 2829d3123..ad7177b8f 100644 --- a/tests/unit/accordion/core.js +++ b/tests/unit/accordion/core.js @@ -135,7 +135,7 @@ QUnit.test( "keyboard support", function( assert ) { setTimeout( step2 ); } - // Support: IE 11 with jQuery 1.7 - 1.8 only + // Support: IE 11 with jQuery 1.8 only // All of the setTimeouts() from keydowns aren't necessary with newer jQuery. // Only the explicit focus simulations require them. function step2() { diff --git a/tests/unit/checkboxradio/core.js b/tests/unit/checkboxradio/core.js index e1211773d..b16c09408 100644 --- a/tests/unit/checkboxradio/core.js +++ b/tests/unit/checkboxradio/core.js @@ -94,28 +94,25 @@ QUnit.test( "Checkbox creation requires a label, and finds it in all cases", fun QUnit.test( "Calling checkboxradio on an unsupported element throws an error", function( assert ) { assert.expect( 2 ); - var errorMessage = - "Can't create checkboxradio on element.nodeName=div and element.type=undefined"; - var error = new Error( errorMessage ); + var error = new Error( + "Can't create checkboxradio on element.nodeName=div and element.type=undefined" + ); assert.raises( function() { $( "<div>" ).checkboxradio(); }, - - // Support: jQuery 1.7.0 only - $.fn.jquery === "1.7" ? errorMessage : error, + error, "Proper error thrown" ); - errorMessage = "Can't create checkboxradio on element.nodeName=input and element.type=button"; - error = new Error( errorMessage ); + error = new Error( + "Can't create checkboxradio on element.nodeName=input and element.type=button" + ); assert.raises( function() { $( "<input type='button'>" ).checkboxradio(); }, - - // Support: jQuery 1.7.0 only - $.fn.jquery === "1.7" ? errorMessage : error, + error, "Proper error thrown" ); } ); @@ -123,15 +120,12 @@ QUnit.test( "Calling checkboxradio on an unsupported element throws an error", f QUnit.test( "Calling checkboxradio on an input with no label throws an error", function( assert ) { assert.expect( 1 ); - var errorMessage = "No label found for checkboxradio widget"; - var error = new Error( errorMessage ); + var error = new Error( "No label found for checkboxradio widget" ); assert.raises( function() { $( "<input type='checkbox'>" ).checkboxradio(); }, - - // Support: jQuery 1.7.0 only - $.fn.jquery === "1.7" ? errorMessage : error, + error, "Proper error thrown" ); } ); diff --git a/tests/unit/subsuite.js b/tests/unit/subsuite.js index aa87102f0..586e66736 100644 --- a/tests/unit/subsuite.js +++ b/tests/unit/subsuite.js @@ -1,7 +1,6 @@ ( function() { var versions = [ - "1.7.0", "1.7.1", "1.7.2", "1.8.0", "1.8.1", "1.8.2", "1.8.3", "1.9.0", "1.9.1", "1.10.0", "1.10.1", "1.10.2", |