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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cache/xmlhttprequest-onload-event-for-failed-revalidation.html

Issue 2210473002: Mark ResourceClient/ImageResourceObserver finished just before notifying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wrap by 80 cols and Rebase. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script>
6 async_test(function(t) {
7 const url = 'resources/etag-200.php?' +
8 Math.floor(100000000 * Math.random());
9 const xhr1 = new XMLHttpRequest();
10 xhr1.onload = function() {
11 assert_equals(xhr1.status, 200);
12
13 const xhr2 = new XMLHttpRequest();
14 xhr2.onload = function() {
15 assert_equals(xhr2.status, 200);
16 t.done();
17 };
18 xhr2.open("GET", url, true);
19 xhr2.send();
20 };
21
22 xhr1.open("GET", url, true);
23 xhr1.send();
24 }, "onload event must be invoked for failed revalidation when XHR's " +
25 "onload handler initiates a new XHR to the same URL.");
26 </script>
27 </head>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698