]> 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:25:23 +0000 (15:25 -0500)
test/unit/ajax.js

index 761885ccb8b98949126466e04bd3a0aa085db5e9..0ad86e0d572771386dafd41fe661c2e61688f576 100644 (file)
@@ -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();
                                }