Skip to content

Commit

Permalink
use an existing helper file instead of support/echo.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Hallvord Reiar M. Steen committed May 23, 2013
1 parent 25b4abf commit 563ff3b
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 31 deletions.
6 changes: 3 additions & 3 deletions XMLHttpRequest/send-data-arraybuffer.htm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<link rel="help" href="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-send()-method" />
<link rel="help" href="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-send()-method" data-tested-assertations="following::ol[1]/li[4]"/>
<script src="/resources/testharness.js"></script>
<title>XMLHttpRequest L2: The send() method: ArrayBuffer data</title>
<title>XMLHttpRequest: The send() method: ArrayBuffer data</title>
</head>

<body>
Expand Down Expand Up @@ -37,7 +37,7 @@
}
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send(buf);
});
</script>
Expand Down
4 changes: 2 additions & 2 deletions XMLHttpRequest/send-data-blob.htm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
blob = xhr.response;
assert_true(blob instanceof Blob, "Blob from XHR Response");

xhr2.open("POST", "./support/echo.php", true);
xhr2.open("POST", "./resources/content.php", true);
xhr2.send(blob);
});
}
Expand All @@ -49,7 +49,7 @@
}
};

xhr.open("GET", "./support/echo.php?content=" + content, true);
xhr.open("GET", "./resources/content.php?content=" + content, true);
xhr.responseType = "blob";
xhr.send();
});
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-no-response-event-loadend.htm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
});
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send();
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-no-response-event-loadstart.htm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
test.step(function() { test.done("Test done!"); });
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send();
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-no-response-event-order.htm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
});
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send();
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-response-event-load.htm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
});
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send("Test Message");
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-response-event-loadend.htm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
});
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send("Test Message");
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-response-event-loadstart.htm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
});
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send("Test Message");
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-response-event-order.htm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
});
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send("Test Message");
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-response-event-progress.htm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
});
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send("Test Message");
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-response-upload-event-loadend.htm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
});
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send("Test Message");
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-response-upload-event-loadstart.htm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
});
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send("Test Message");
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-response-upload-event-progress.htm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
});
};

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.send("Test Message");
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-sync-no-response-event-load.htm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
pass = true;
};

xhr.open("POST", "./support/echo.php", false);
xhr.open("POST", "./resources/content.php", false);
xhr.send();

assert_equals(xhr.response, "");
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-sync-no-response-event-loadend.htm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
pass = true;
};

xhr.open("POST", "./support/echo.php", false);
xhr.open("POST", "./resources/content.php", false);
xhr.send();

assert_equals(xhr.response, "");
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-sync-no-response-event-order.htm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
xhr.upload.onloadstart = function(e){ actual.push("upload." + e.type); };
xhr.upload.onloadend = function(e){ actual.push("upload." + e.type);};

xhr.open("POST", "./support/echo.php", false);
xhr.open("POST", "./resources/content.php", false);
xhr.send();

assert_equals(xhr.response, "");
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-sync-response-event-order.htm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
xhr.upload.onloadstart = function(e){ actual.push("upload." + e.type); };
xhr.upload.onloadend = function(e){ actual.push("upload." + e.type);};

xhr.open("POST", "./support/echo.php", false);
xhr.open("POST", "./resources/content.php", false);
xhr.send("Test Message");

assert_equals(xhr.response, "Test Message");
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-timeout-events.htm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
content += "[" + i + "]";
}

xhr.open("POST", "./support/echo.php", true);
xhr.open("POST", "./resources/content.php", true);
xhr.timeout = 1;
xhr.send(content);
});
Expand Down
10 changes: 0 additions & 10 deletions XMLHttpRequest/support/echo.php

This file was deleted.

0 comments on commit 563ff3b

Please sign in to comment.