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

Side by Side Diff: LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-set-at-headers-received.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 <script> 5 <script>
6 description('This tests that the XMLHttpRequest responseType attribute i s modifiable in the HEADERS_RECEIVED state.'); 6 description('This tests that the XMLHttpRequest responseType attribute i s modifiable in the HEADERS_RECEIVED state.');
7 window.jsTestIsAsync = true; 7 window.jsTestIsAsync = true;
8 8
9 var xhr = new XMLHttpRequest(); 9 var xhr = new XMLHttpRequest();
10 xhr.open('GET', window.location.href); 10 xhr.open('GET', window.location.href);
(...skipping 10 matching lines...) Expand all
21 if (xhr.readyState === 2) { 21 if (xhr.readyState === 2) {
22 // HEADERS_RECEIVED state, set the responseType now 22 // HEADERS_RECEIVED state, set the responseType now
23 evalAndLog("xhr.responseType = 'document';"); 23 evalAndLog("xhr.responseType = 'document';");
24 } else if (xhr.readyState > 2) { 24 } else if (xhr.readyState > 2) {
25 // LOADING or DONE, so we should get an exception when trying to set responseType 25 // LOADING or DONE, so we should get an exception when trying to set responseType
26 shouldThrow("xhr.responseType = 'text';"); 26 shouldThrow("xhr.responseType = 'text';");
27 } 27 }
28 }; 28 };
29 xhr.send(null); 29 xhr.send(null);
30 </script> 30 </script>
31 <script src="../js/resources/js-test-post.js"></script>
32 </head> 31 </head>
33 <body> 32 <body>
34 <div id="description"></div> 33 <div id="description"></div>
35 <div id="console"></div> 34 <div id="console"></div>
36 </body> 35 </body>
37 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698