Strip off filename and query string for JSONP Remote test.
authorjeresig <jeresig@gmail.com>
Tue, 23 Mar 2010 20:22:09 +0000 (16:22 -0400)
committerwycats <wycats@gmail.com>
Sun, 20 Jun 2010 05:29:47 +0000 (22:29 -0700)
test/unit/ajax.js

index ce257f8..135e054 100644 (file)
@@ -774,7 +774,7 @@ test("jQuery.ajax() - JSONP, Remote", function() {
        var count = 0;
        function plus(){ if ( ++count == 4 ) start(); }
 
-       var base = window.location.href.replace(/\?.*$/, "");
+       var base = window.location.href.replace(/[^\/]*$/, "");
 
        stop();