aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-03-23 16:24:51 -0400
committerjeresig <jeresig@gmail.com>2010-03-23 16:24:51 -0400
commit273822c138c70b1d58e2d1199090e9efa3e0e53e (patch)
tree6ab5e5f15e88d34c0e507adbe786f27a7959ef77
parent0fbac16dbe77b6bf846b43d3ef3bd75c374e2628 (diff)
downloadjquery-273822c138c70b1d58e2d1199090e9efa3e0e53e.tar.gz
jquery-273822c138c70b1d58e2d1199090e9efa3e0e53e.zip
Update other remote test URLs as well.
-rw-r--r--test/unit/ajax.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 135e0541a..be4b3f021 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -836,7 +836,7 @@ test("jQuery.ajax() - JSONP, Remote", function() {
test("jQuery.ajax() - script, Remote", function() {
expect(2);
- var base = window.location.href.replace(/\?.*$/, "");
+ var base = window.location.href.replace(/[^\/]*$/, "");
stop();
@@ -853,7 +853,7 @@ test("jQuery.ajax() - script, Remote", function() {
test("jQuery.ajax() - script, Remote with POST", function() {
expect(3);
- var base = window.location.href.replace(/\?.*$/, "");
+ var base = window.location.href.replace(/[^\/]*$/, "");
stop();
@@ -876,7 +876,7 @@ test("jQuery.ajax() - script, Remote with POST", function() {
test("jQuery.ajax() - script, Remote with scheme-less URL", function() {
expect(2);
- var base = window.location.href.replace(/\?.*$/, "");
+ var base = window.location.href.replace(/[^\/]*$/, "");
base = base.replace(/^.*?\/\//, "//");
stop();
@@ -991,7 +991,7 @@ test("jQuery.getJSON - Using Native JSON", function() {
test("jQuery.getJSON(String, Function) - JSON object with absolute url to local content", function() {
expect(2);
- var base = window.location.href.replace(/\?.*$/, "");
+ var base = window.location.href.replace(/[^\/]*$/, "");
stop();
jQuery.getJSON(url(base + "data/json.php"), function(json) {