]> source.dussan.org Git - jquery.git/commitdiff
Adjust prefilter test to error on string indexing in oldIE
authorTimmy Willison <timmywillisn@gmail.com>
Thu, 12 Sep 2013 20:25:23 +0000 (15:25 -0500)
committerTimmy Willison <timmywillisn@gmail.com>
Thu, 12 Sep 2013 20:49:53 +0000 (15:49 -0500)
test/unit/ajax.js

index 21ecdd2f7370bcdcb9ea29a0e4af25a777a7967c..152dabb4ae5d5a06837cb55e5ab652b11e914ec2 100644 (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();
                                }