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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html

Issue 76133002: XHR: reset error flag on aborting request that restarts. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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 | « no previous file | LayoutTests/http/tests/xmlhttprequest/reentrant-cancel-abort.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html b/LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html
index ab9e7aa0e56d3b9411965a6b8a4cd9f6dd0b84d6..2916ae6a1b1992c839560ed33fd5fd77523c6424 100644
--- a/LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html
+++ b/LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html
@@ -1,9 +1,20 @@
+<!doctype html>
+<html>
+<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
-function addElement() {
- document.documentElement.appendChild(document.createTextNode('X'));
+function log(str)
+{
+ document.body.appendChild(document.createTextNode(str));
+ document.body.appendChild(document.createElement("br"));
+}
+
+function addElement(e)
+{
+ var txt = (e && e.type) || "insertedText";
+ log(txt);
}
document.addEventListener("DOMContentLoaded", addElement, false);
window.onload = addElement;
@@ -18,4 +29,7 @@ window.addEventListener("DOMSubtreeModified", sendXHR);
addElement();
</script>
This tests that when we re-entrantly create and cancel XHRs, we don't try to disconnect the same CachedResourceClient
-multiple times from its CachedResource. We pass if we don't crash.
+multiple times from its CachedResource. We pass if we don't crash.<br/>
+</body>
+</html>
+
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/reentrant-cancel-abort.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698