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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/connection-error-sync.html

Issue 24225002: Don't dispatch events when XHR is set to sync mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert change on network-preflight-options.html Created 7 years, 3 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 | « no previous file | LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-sync-2.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/xmlhttprequest/connection-error-sync.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/connection-error-sync.html b/LayoutTests/http/tests/xmlhttprequest/connection-error-sync.html
index 7600aa129d4dffeead163e4c3028691fb77e39fb..fad290524dc21258637e70b4b17227be0407ba67 100644
--- a/LayoutTests/http/tests/xmlhttprequest/connection-error-sync.html
+++ b/LayoutTests/http/tests/xmlhttprequest/connection-error-sync.html
@@ -19,6 +19,14 @@
}
req.open('GET', 'resources/infinite-loop.php', false);
+ req.onreadystatechange = function()
+ {
+ document.write('onreadystatechange is invoked unexpectedly<br>');
+ }
+ req.onerror = function()
+ {
+ document.write('onerror is invoked unexpectedly<br>');
+ }
req.send(null);
document.write("Status: " + req.status);
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-sync-2.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698