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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-sync-requests.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
Index: LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-sync-requests.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-sync-requests.html b/LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-sync-requests.html
index a9a1443276a46a4f803193e95beb4f086f9cd661..50fdf9430c70bedcc4d2289f58e9ff3ccf47595a 100644
--- a/LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-sync-requests.html
+++ b/LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-sync-requests.html
@@ -4,7 +4,7 @@
</head>
<body>
<p> Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=40952"> bug 40952</a>: Onloadend event is not supported in XMLHttpRequest</p>
-<p> Verify that a loadend ProgressEvent is dispatched after a load, error, or abort ProgressEvent when a synchronous request completes normally, fails, or is aborted respectively.</p>
+<p> Verify that a loadend ProgressEvent is dispatched after a load or abort ProgressEvent when a synchronous request completes normally or is aborted respectively.</p>
<p>PASS PASS PASS should appear below:</p>
<p id=console></p>
<script type="text/javascript">
@@ -60,9 +60,9 @@ function testError()
xhr.onloadstart = logUnexpectedProgressEvent;
xhr.onabort = logUnexpectedProgressEvent;
- xhr.onerror = logProgressEvent;
+ xhr.onerror = logUnexpectedProgressEvent;
xhr.onload = logUnexpectedProgressEvent;
- xhr.onloadend = logProgressEvent;
+ xhr.onloadend = logUnexpectedProgressEvent;
xhr.open("GET", "resources/infinite-loop.php", false);
try {
@@ -73,7 +73,7 @@ function testError()
results += " " + e;
}
- completeTest(" error loadend");
+ completeTest("");
}
function testAbort()

Powered by Google App Engine
This is Rietveld 408576698