From: Timmy Willison Date: Thu, 12 Sep 2013 20:25:23 +0000 (-0500) Subject: Adjust prefilter test to error on string indexing in oldIE X-Git-Tag: 2.1.0-beta1~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6b7a52b21a5b37f110c17bf9d6c81231565a080c;p=jquery.git Adjust prefilter test to error on string indexing in oldIE --- diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 761885ccb..0ad86e0d5 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1526,7 +1526,8 @@ module( "ajax", { ajaxTest( "jQuery.ajaxPrefilter() - abort", 1, { setup: function() { - jQuery.ajaxPrefilter(function( options, _, jqXHR ) { + // Ensure prefix does not throw an error + jQuery.ajaxPrefilter("+prefix *", function( options, _, jqXHR ) { if ( options.abortInPrefilter ) { jqXHR.abort(); }