From b61b16b5a89ee27b30efdf7635d897af810af130 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Wed, 22 Jul 2020 16:04:47 +0200 Subject: All: Drop support for jQuery 1.7 Closes gh-1923 --- tests/lib/qunit.js | 1 - tests/unit/accordion/core.js | 2 +- tests/unit/checkboxradio/core.js | 26 ++++++++++---------------- tests/unit/subsuite.js | 1 - 4 files changed, 11 insertions(+), 19 deletions(-) (limited to 'tests') 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() { $( "
" ).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() { $( "" ).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() { $( "" ).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", -- cgit v1.2.3