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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-error.html

Issue 1910723003: Add layout tests for notification icon with redirect loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NotificationTestsUsePromises
Patch Set: Rebase. Created 4 years, 8 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Test case for bug 40952</title> 3 <title>Test case for bug 40952</title>
4 </head> 4 </head>
5 <body> 5 <body>
6 <p> Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=40952"> bug 4 0952</a>: Onloadend event is not supported in XMLHttpRequest</p> 6 <p> Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=40952"> bug 4 0952</a>: Onloadend event is not supported in XMLHttpRequest</p>
7 <p> Verify that a loadend ProgressEvent is dispatched after the error ProgressEv ent when an async request fails.</p> 7 <p> Verify that a loadend ProgressEvent is dispatched after the error ProgressEv ent when an async request fails.</p>
8 <p>PASS should appear below:</p> 8 <p>PASS should appear below:</p>
9 <p id=console></p> 9 <p id=console></p>
10 <script type="text/javascript"> 10 <script type="text/javascript">
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 xhr.onloadstart = logProgressEvent; 49 xhr.onloadstart = logProgressEvent;
50 xhr.onabort = logUnexpectedProgressEvent; 50 xhr.onabort = logUnexpectedProgressEvent;
51 xhr.onerror = logProgressEvent; 51 xhr.onerror = logProgressEvent;
52 xhr.onload = logUnexpectedProgressEvent; 52 xhr.onload = logUnexpectedProgressEvent;
53 xhr.onloadend = function(e) { 53 xhr.onloadend = function(e) {
54 logProgressEvent(e); 54 logProgressEvent(e);
55 completeTest(); 55 completeTest();
56 } 56 }
57 57
58 xhr.open("GET", "resources/infinite-loop.php", true); 58 xhr.open("GET", "../resources/infinite-loop.php", true);
59 xhr.send(); 59 xhr.send();
60 } 60 }
61 61
62 test(); 62 test();
63 63
64 </script> 64 </script>
65 </body> 65 </body>
66 66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698