From 6b7a52b21a5b37f110c17bf9d6c81231565a080c Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Thu, 12 Sep 2013 15:25:23 -0500 Subject: [PATCH] Adjust prefilter test to error on string indexing in oldIE --- test/unit/ajax.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- 2.39.5