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

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: tests 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="/js-test-resources/js-test.js"></script>
4 </head>
5 <body>
6 <script>
7 description('onload event must be invoked for failed revalidation.');
8
9 window.jsTestIsAsync = true;
10
11 var url = '../cache/resources/etag-200.php?' + Math.floor(100000000 * Math.rand om());
yhirano 2016/08/09 09:35:58 const
hiroshige 2016/08/10 06:03:08 Done.
12
13 xhr1 = new XMLHttpRequest();
yhirano 2016/08/09 09:35:58 const
hiroshige 2016/08/10 06:03:07 Done.
14 xhr1.onload = function() {
15 debug('onload for the 1st request');
16 shouldBeEqualToNumber("xhr1.status", 200);
yhirano 2016/08/09 09:35:58 indent
hiroshige 2016/08/10 06:03:07 Done.
17
18 xhr2 = new XMLHttpRequest();
yhirano 2016/08/09 09:35:58 const
hiroshige 2016/08/10 06:03:08 Done.
19 xhr2.onload = function() {
20 debug('onload for the 2nd request');
21 shouldBeEqualToNumber("xhr2.status", 200);
22 finishJSTest();
23 };
24 xhr2.open("GET", url, true);
25 xhr2.send();
26 };
27
28 xhr1.open("GET", url, true);
29 xhr1.send();
30 </script>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698