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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-sync-requests.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 a load ProgressEvent when a synchronous request completes normally.<br/> 7 <p> Verify that a loadend ProgressEvent is dispatched after a load ProgressEvent when a synchronous request completes normally.<br/>
8 Verify that a loadend ProgressEvent is not dispatched after abort() is called wh en a synchronous request completes normally.</p> 8 Verify that a loadend ProgressEvent is not dispatched after abort() is called wh en a synchronous request completes normally.</p>
9 <p>PASS PASS PASS should appear below:</p> 9 <p>PASS PASS PASS should appear below:</p>
10 <p id=console></p> 10 <p id=console></p>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 function testError() 58 function testError()
59 { 59 {
60 results = ""; 60 results = "";
61 61
62 xhr.onloadstart = logUnexpectedProgressEvent; 62 xhr.onloadstart = logUnexpectedProgressEvent;
63 xhr.onabort = logUnexpectedProgressEvent; 63 xhr.onabort = logUnexpectedProgressEvent;
64 xhr.onerror = logUnexpectedProgressEvent; 64 xhr.onerror = logUnexpectedProgressEvent;
65 xhr.onload = logUnexpectedProgressEvent; 65 xhr.onload = logUnexpectedProgressEvent;
66 xhr.onloadend = logUnexpectedProgressEvent; 66 xhr.onloadend = logUnexpectedProgressEvent;
67 67
68 xhr.open("GET", "resources/infinite-loop.php", false); 68 xhr.open("GET", "../resources/infinite-loop.php", false);
69 try { 69 try {
70 xhr.send(); 70 xhr.send();
71 } 71 }
72 catch (e) { 72 catch (e) {
73 if (e.code != e.NETWORK_ERR) 73 if (e.code != e.NETWORK_ERR)
74 results += " " + e; 74 results += " " + e;
75 } 75 }
76 76
77 completeTest(""); 77 completeTest("");
78 } 78 }
(...skipping 23 matching lines...) Expand all
102 102
103 completeTest(""); 103 completeTest("");
104 } 104 }
105 105
106 testNormal(); 106 testNormal();
107 testError(); 107 testError();
108 testAbort(); 108 testAbort();
109 109
110 </script> 110 </script>
111 </body> 111 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698