diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2016-02-25 01:18:55 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-03-08 23:26:46 +0100 |
commit | 9b086888b803db872e8906cbdbf0de458231f225 (patch) | |
tree | 084539db8297eae7f97f82ffe0da2d318f81251f /test/unit/ajax.js | |
parent | b43a3685b60b307d61f41f0c94412380ed46ab22 (diff) | |
download | jquery-9b086888b803db872e8906cbdbf0de458231f225.tar.gz jquery-9b086888b803db872e8906cbdbf0de458231f225.zip |
Docs:Tests: Remove obsolete code from tests, update support comments
Support comments that were lacking the final IE/Edge version that exhibits
the bug were checked & updated. Links to the Chromium bug tracker were updated.
Code in tests related to unsupported browsers (like Android 2.3 in non-basic
tests) has been removed.
Fixes gh-2868
Closes gh-2949
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 63f0edd9f..949bf5f20 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -249,9 +249,8 @@ QUnit.module( "ajax", { "Nullable": null, "undefined": undefined - // Support: Firefox + // Support: IE 9 - 11, Edge 12 - 13+ // Not all browsers allow empty-string headers - // https://bugzilla.mozilla.org/show_bug.cgi?id=815299 //"Empty": "" }, success: function( data, _, xhr ) { @@ -1699,16 +1698,6 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re } QUnit.asyncTest( "#11743 - jQuery.ajax() - script, throws exception", 1, function( assert ) { - - // Support: Android 2.3 only - // Android 2.3 doesn't fire the window.onerror handler, just accept the reality there. - if ( /android 2\.3/i.test( navigator.userAgent ) ) { - assert.ok( true, "Test skipped, Android 2.3 doesn't fire window.onerror for " + - "errors in dynamically included scripts" ); - QUnit.start(); - return; - } - var onerror = window.onerror; window.onerror = function() { assert.ok( true, "Exception thrown" ); @@ -1768,13 +1757,6 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re var parsedXML = jQuery( jQuery.parseXML( "<tab title=\"Added\">blibli</tab>" ) ).find( "tab" ); ajaxXML = jQuery( ajaxXML ); try { - - // Android 2.3 doesn't automatically adopt nodes from foreign documents. - // (see the comment in test/manipulation.js) - // Support: Android 2.3 - if ( /android 2\.3/i.test( navigator.userAgent ) ) { - parsedXML = jQuery( ajaxXML[ 0 ].adoptNode( parsedXML[ 0 ] ) ); - } ajaxXML.find( "infowindowtab" ).append( parsedXML ); } catch ( e ) { assert.strictEqual( e, undefined, "error" ); |