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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/xhr-onload.html

Issue 938553003: [DO NOT COMMIT] [DO NOT REVIEW] XHR timeout layout test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/xhr-onload-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 </head>
5 <body>
6 <script src="/js-test-resources/js-test.js"></script>
7 <script>
8 description("Request a file as the Text type with asynchronous XMLHttpRequest in a document context.");
9 window.jsTestIsAsync = true;
10 document.body.onload = function() {
11 var xhr = new XMLHttpRequest();
12 xhr.open('GET', 'resources/test.html?0');
13 xhr.send();
14 xhr.onreadystatechange = function() {
15 if (xhr.readyState === 4) {
16 debug('xhr.readyState === 4');
17 }
18 };
19
20 xhr.onerror = function() {
21 debug('FAIL0: onerror');
22 finishJSTest();
23 };
24 xhr.onabort = function() {
25 debug('FAIL0: onabort');
26 finishJSTest();
27 };
28 xhr.ontimeout = function() {
29 deubg('FAIL0: ontimeout');
30 finishJSTest();
31 };
32
33 xhr.onload = function() {
34 debug('xhr.onload');
35 debug(s[xhr.readyState] === ' ' ? 'DONE' : 'FAIL');
36 finishJSTest();
37 };
38 };
39 var s = 'I do not know why, but declaring this variable causes timeout.';
40 </script>
41 </body>
42 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/xhr-onload-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698