Index: LayoutTests/http/tests/xmlhttprequest/supported-xml-content-types-invalid-1.html |
diff --git a/LayoutTests/http/tests/xmlhttprequest/supported-xml-content-types-invalid-1.html b/LayoutTests/http/tests/xmlhttprequest/supported-xml-content-types-invalid-1.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b454a63e7094680f462c9f00a71fcd4011a9e042 |
--- /dev/null |
+++ b/LayoutTests/http/tests/xmlhttprequest/supported-xml-content-types-invalid-1.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE HTML> |
+<script src="/js-test-resources/js-test.js"></script> |
+<script src="resources/supported-xml-content-types.js"></script> |
+<script> |
+description("Test identification of XML content type in XHR responses."); |
+window.jsTestIsAsync = true; |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+// FIXME: our code intentionally skips spaces, that seems wrong to me. |
+// https://bugs.webkit.org/show_bug.cgi?id=8644 |
+testXMLType("foo bar/baz+xml", false); |
+ |
+testXMLType("foo[bar/baz+xml", false); |
+testXMLType("foo]bar/baz+xml", false); |
+testXMLType("foo(bar/baz+xml", false); |
+testXMLType("foo)bar/baz+xml", false); |
+testXMLType("foo<bar/baz+xml", false); |
+testXMLType("foo>bar/baz+xml", false); |
+testXMLType("foo@bar/baz+xml", false); |
+ |
+runNextTest(); |
+</script> |