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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/style-tag-in-responseXML.html

Issue 2885633002: Style tag in an XHR's responseXML shouldn't make the responseXML be null. (Closed)
Patch Set: Move setting Document::well_formed_ Created 3 years, 7 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: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/style-tag-in-responseXML.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/style-tag-in-responseXML.html b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/style-tag-in-responseXML.html
new file mode 100644
index 0000000000000000000000000000000000000000..7f3ac2ac437b349eda96120fdc7377a4c92bb5eb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/style-tag-in-responseXML.html
@@ -0,0 +1,21 @@
+<html>
+<body>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+var style_in_responseXML = async_test("Check that a style in an XHR's responseXML doesn't prevent accessing the responseXML");
+
+var request = new XMLHttpRequest();
+request.responseType = "document";
+request.open("GET", "resources/xml-with-style-tag.xml", true);
+request.onreadystatechange = style_in_responseXML.step_func(function() {
+ if (request.readyState === 4) {
+ assert_not_equals(null, request.response);
+ assert_not_equals(null, request.responseXML);
+ style_in_responseXML.done();
+ }
+});
+request.send();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698