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> |