From c6b4230d5c6abb45a2f282bfd02b8b1325705d19 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 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(); } -- 2.39.5