Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: chrome/test/data/sync_xmlhttprequest.html

Issue 10829070: Move resource_dispatcher_host_browsertest.cc to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/onunload_cookie.html ('k') | chrome/test/data/sync_xmlhttprequest_disallowed.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/sync_xmlhttprequest.html
===================================================================
--- chrome/test/data/sync_xmlhttprequest.html (revision 148962)
+++ chrome/test/data/sync_xmlhttprequest.html (working copy)
@@ -1,32 +0,0 @@
-<html>
-<head>
-<script>
-var request_success = false;
-
-function OnLoad() {
- var request = new XMLHttpRequest();
- request.open("GET", "title1.html", false);
- request.send("");
-
- var my_div = document.getElementById("my_div");
- if (request.readyState == 4 && request.status == 200) {
- request_success = true;
- my_div.innerHTML = "Got a successful response: " + request.responseText;
- } else {
- my_div.innerHTML = "Request failed: ready state=" + request.readyState +
- " status=" + request.status;
- }
-}
-
-function DidSyncRequestSucceed() {
- return request_success;
-}
-
-</script>
-</head>
-<body onload="OnLoad();">
-This page sends a synchronous XMLHttpRequest.
-<br><br>
-<div id="my_div"></div>
-</body>
-</html>
« no previous file with comments | « chrome/test/data/onunload_cookie.html ('k') | chrome/test/data/sync_xmlhttprequest_disallowed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698