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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-ensure-noscript.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-ensure-noscript.html b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-ensure-noscript.html
new file mode 100644
index 0000000000000000000000000000000000000000..79f2a32cb0bce1143be7bbb2c28f1bdfadb875fb
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-ensure-noscript.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="/js-test-resources/js-test.js"></script>
+<script>
+jsTestIsAsync = true;
+
+var xhr = new XMLHttpRequest();
+xhr.responseType = 'document';
+xhr.onreadystatechange = function () {
+ if (this.readyState != XMLHttpRequest.DONE)
+ return;
+
+ html = xhr.responseXML.documentElement.innerHTML;
+ if (html.indexOf("FAILED") >= 0)
+ testFailed("response HTML script was executed");
+ else
+ testPassed("response HTML script was not executed");
+
+ testRunner.notifyDone();
+}
+
+xhr.open("GET", "resources/script.html", true);
+xhr.send(null);
+</script>

Powered by Google App Engine
This is Rietveld 408576698