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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-ensure-noscript.html

Issue 454313002: [WIP] XMLHttpRequest should parse as it receives chunks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add test Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <script>
4 jsTestIsAsync = true;
5
6 var xhr = new XMLHttpRequest();
7 xhr.responseType = 'document';
8 xhr.onreadystatechange = function () {
9 if (this.readyState != XMLHttpRequest.DONE)
10 return;
11
12 html = xhr.responseXML.documentElement.innerHTML;
13 if (html.indexOf("FAILED") >= 0)
14 testFailed("response HTML script was executed");
15 else
16 testPassed("response HTML script was not executed");
17
18 testRunner.notifyDone();
19 }
20
21 xhr.open("GET", "resources/script.html", true);
22 xhr.send(null);
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698