Skip to content

Commit

Permalink
Update other remote test URLs as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig authored and wycats committed Jun 20, 2010
1 parent 31cfe62 commit 83a97f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand All @@ -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();
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 83a97f5

Please sign in to comment.