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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cache/xmlhttprequest-onload-event-for-successful-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, 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 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.php?' + Math.floor(100000000 * Math.random());
8 const xhr1 = new XMLHttpRequest();
9 xhr1.onload = function() {
10 assert_equals(xhr1.status, 200);
11
12 const xhr2 = new XMLHttpRequest();
13 xhr2.onload = function() {
14 assert_equals(xhr2.status, 200);
15 t.done();
16 };
17 xhr2.open("GET", url, true);
18 xhr2.send();
19 };
20
21 xhr1.open("GET", url, true);
22 xhr1.send();
23 }, "onload event must be invoked for successful revalidation when XHR's " +
24 "onload handler initiates a new XHR to the same URL.");
25 </script>
26 </head>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698