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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/ontimeout-event-override-after-failure.html

Issue 2504713003: Deflake ontimeout-event-override-after-failure by waiting longer for http (Closed)
Patch Set: Don't update test expectations until the tests are known to be deflaked Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html>
1 <html> 2 <html>
2 <body> 3 <body>
3 <pre id='console'></pre> 4 <pre id='console'></pre>
4 <script type="text/javascript"> 5 <script type="text/javascript">
5 function log(message) 6 function log(message)
6 { 7 {
7 document.getElementById('console').appendChild(document.createTextNode(messa ge + "\n")); 8 document.getElementById('console').appendChild(document.createTextNode(messa ge + "\n"));
8 } 9 }
9 10
10 if (window.testRunner) { 11 if (window.testRunner) {
(...skipping 24 matching lines...) Expand all
35 xhr.timeout = 1; 36 xhr.timeout = 1;
36 errorCalled = true; 37 errorCalled = true;
37 }; 38 };
38 39
39 xhr.ontimeout = function() { 40 xhr.ontimeout = function() {
40 error = true; 41 error = true;
41 log("FAIL: Timeout override reactivated the timer"); 42 log("FAIL: Timeout override reactivated the timer");
42 } 43 }
43 44
44 xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-contr ol-basic-denied.cgi"); 45 xhr.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-contr ol-basic-denied.cgi");
45 xhr.timeout = 100; 46 xhr.timeout = 180;
46 xhr.send(); 47 xhr.send();
47 48
48 setTimeout(performAssertions, 200); 49 setTimeout(performAssertions, 200);
49 })(); 50 })();
50 </script> 51 </script>
51 </body> 52 </body>
52 </html> 53 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698