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-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=0fbac16dbe77b6bf846b43d3ef3bd75c374e2628 Strip off filename and query string for JSONP Remote test. --- diff --git a/test/unit/ajax.js b/test/unit/ajax.js index ce257f8..135e054 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();