aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-09-12 15:25:23 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-09-12 15:25:23 -0500
commit6b7a52b21a5b37f110c17bf9d6c81231565a080c (patch)
tree8d22a59e37dd2efbd5ff3dd2de31705068585a73 /test/unit/ajax.js
parent679536ee4b7a92ae64a5f58d90e9cc38c001e807 (diff)
downloadjquery-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.js3
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();
}