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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-LSProgressEvent-ProgressEvent-should-match.html

Issue 66323004: XHR: compliant event sequencing on request errors and aborts. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Improve test code quality Created 7 years, 1 month 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 18655 </title> 3 <title> Test case for bug 18655 </title>
4 </head> 4 </head>
5 <body> 5 <body>
6 <p> Test case for Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=18655">18 655</a>: [XHR] OnProgress needs more test case </p> 6 <p> Test case for Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=18655">18 655</a>: [XHR] OnProgress needs more test case </p>
7 <p> This test verify that we implement both interfaces and that they match. </p> 7 <p> This test verify that we implement both interfaces and that they match. </p>
8 <p> You should see PASSED twice. </p> 8 <p> You should see PASSED twice. </p>
9 9
10 <script type="text/javascript"> 10 <script type="text/javascript">
(...skipping 11 matching lines...) Expand all
22 if (e.position == e.loaded && e.loaded) 22 if (e.position == e.loaded && e.loaded)
23 log("PASSED"); 23 log("PASSED");
24 else 24 else
25 log("FAILED position and loaded do not match (or both are null)"); 25 log("FAILED position and loaded do not match (or both are null)");
26 26
27 if (e.totalSize == e.total && e.total) 27 if (e.totalSize == e.total && e.total)
28 log("PASSED"); 28 log("PASSED");
29 else 29 else
30 log("FAILED totalSize and total do not match (or both are null)"); 30 log("FAILED totalSize and total do not match (or both are null)");
31 31
32 if (window.testRunner) 32 if (++count == 1 && window.testRunner)
33 testRunner.notifyDone(); 33 testRunner.notifyDone();
34 } 34 }
35 35
36 if (window.testRunner) { 36 if (window.testRunner) {
37 testRunner.dumpAsText(); 37 testRunner.dumpAsText();
38 testRunner.waitUntilDone(); 38 testRunner.waitUntilDone();
39 } 39 }
40 40
41 var req = new XMLHttpRequest(); 41 var req = new XMLHttpRequest();
42 req.onprogress = onProgress; 42 req.onprogress = onProgress;
43 req.open("GET", "resources/1251.html", true); 43 req.open("GET", "resources/1251.html", true);
44 req.send(null); 44 req.send(null);
45 </script> 45 </script>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698