From: jeresig Date: Tue, 23 Mar 2010 20:22:09 +0000 (-0400) Subject: Strip off filename and query string for JSONP Remote test. X-Git-Tag: 1.4.3rc1~161^2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=31cfe62ed4884f0f7eff399375bf6e748738ef71;p=jquery.git Strip off filename and query string for JSONP Remote test. --- diff --git a/test/unit/ajax.js b/test/unit/ajax.js index ce257f88a..135e0541a 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -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();