git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
31cfe62
)
Update other remote test URLs as well.
author
jeresig
<jeresig@gmail.com>
Tue, 23 Mar 2010 20:24:51 +0000
(16:24 -0400)
committer
wycats
<wycats@gmail.com>
Sun, 20 Jun 2010 05:29:47 +0000
(22:29 -0700)
test/unit/ajax.js
patch
|
blob
|
history
diff --git
a/test/unit/ajax.js
b/test/unit/ajax.js
index
135e054
..
be4b3f0
100644
(file)
--- 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);
test("jQuery.ajax() - script, Remote", function() {
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() {
test("jQuery.ajax() - script, Remote with POST", function() {
expect(3);
test("jQuery.ajax() - script, Remote with POST", function() {
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() {
test("jQuery.ajax() - script, Remote with scheme-less URL", function() {
expect(2);
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();
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);
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) {
stop();
jQuery.getJSON(url(base + "data/json.php"), function(json) {