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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-sync-requests.html

Issue 60203010: XHR.abort(): no event dispatching in completed/non-started states. (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
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 50fdf9430c70bedcc4d2289f58e9ff3ccf47595a..b4dd1ead422f9f73b0b2f347ebf1e132ec249342 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,8 @@
</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 or abort ProgressEvent when a synchronous request completes normally or is aborted respectively.</p>
+<p> Verify that a loadend ProgressEvent is dispatched after a load ProgressEvent when a synchronous request completes normally.<br/>
+Verify that a loadend ProgressEvent is not dispatched after abort() is called when a synchronous request completes normally.</p>
<p>PASS PASS PASS should appear below:</p>
<p id=console></p>
<script type="text/javascript">
@@ -81,7 +82,7 @@ function testAbort()
results = "";
xhr.onloadstart = logUnexpectedProgressEvent;
- xhr.onabort = logProgressEvent;
+ xhr.onabort = logUnexpectedProgressEvent;
xhr.onerror = logUnexpectedProgressEvent;
xhr.onload = logUnexpectedProgressEvent;
xhr.onloadend = logProgressEvent;
@@ -99,7 +100,7 @@ function testAbort()
results += " " + e;
}
- completeTest(" abort loadend");
+ completeTest("");
}
testNormal();

Powered by Google App Engine
This is Rietveld 408576698