Commit 273822c1 authored by jeresig's avatar jeresig

Update other remote test URLs as well.

parent 0fbac16d
...@@ -836,7 +836,7 @@ test("jQuery.ajax() - JSONP, Remote", function() { ...@@ -836,7 +836,7 @@ test("jQuery.ajax() - JSONP, Remote", function() {
test("jQuery.ajax() - script, Remote", function() { test("jQuery.ajax() - script, Remote", function() {
expect(2); expect(2);
var base = window.location.href.replace(/\?.*$/, ""); var base = window.location.href.replace(/[^\/]*$/, "");
stop(); stop();
...@@ -853,7 +853,7 @@ test("jQuery.ajax() - script, Remote", function() { ...@@ -853,7 +853,7 @@ test("jQuery.ajax() - script, Remote", function() {
test("jQuery.ajax() - script, Remote with POST", function() { test("jQuery.ajax() - script, Remote with POST", function() {
expect(3); expect(3);
var base = window.location.href.replace(/\?.*$/, ""); var base = window.location.href.replace(/[^\/]*$/, "");
stop(); stop();
...@@ -876,7 +876,7 @@ test("jQuery.ajax() - script, Remote with POST", function() { ...@@ -876,7 +876,7 @@ test("jQuery.ajax() - script, Remote with POST", function() {
test("jQuery.ajax() - script, Remote with scheme-less URL", function() { test("jQuery.ajax() - script, Remote with scheme-less URL", function() {
expect(2); expect(2);
var base = window.location.href.replace(/\?.*$/, ""); var base = window.location.href.replace(/[^\/]*$/, "");
base = base.replace(/^.*?\/\//, "//"); base = base.replace(/^.*?\/\//, "//");
stop(); stop();
...@@ -991,7 +991,7 @@ test("jQuery.getJSON - Using Native JSON", function() { ...@@ -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() { test("jQuery.getJSON(String, Function) - JSON object with absolute url to local content", function() {
expect(2); expect(2);
var base = window.location.href.replace(/\?.*$/, ""); var base = window.location.href.replace(/[^\/]*$/, "");
stop(); stop();
jQuery.getJSON(url(base + "data/json.php"), function(json) { jQuery.getJSON(url(base + "data/json.php"), function(json) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment