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: 1.11.0-beta1~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c6b4230d5c6abb45a2f282bfd02b8b1325705d19;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 21ecdd2f7..152dabb4a 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1569,7 +1569,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(); }