Adjust prefilter test to error on string indexing in oldIE

This commit is contained in:
Timmy Willison 2013-09-12 15:25:23 -05:00
parent 0bc0a69026
commit c6b4230d5c

View File

@ -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();
}