diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-09-12 15:25:23 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-09-12 15:25:23 -0500 |
commit | 6b7a52b21a5b37f110c17bf9d6c81231565a080c (patch) | |
tree | 8d22a59e37dd2efbd5ff3dd2de31705068585a73 /test/unit/ajax.js | |
parent | 679536ee4b7a92ae64a5f58d90e9cc38c001e807 (diff) | |
download | jquery-6b7a52b21a5b37f110c17bf9d6c81231565a080c.tar.gz jquery-6b7a52b21a5b37f110c17bf9d6c81231565a080c.zip |
Adjust prefilter test to error on string indexing in oldIE
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |