OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <script src="/js-test-resources/js-test.js"></script> |
| 3 <script src="resources/supported-xml-content-types.js"></script> |
| 4 <script> |
| 5 description("Test identification of XML content type in XHR responses."); |
| 6 window.jsTestIsAsync = true; |
| 7 if (window.testRunner) |
| 8 testRunner.dumpAsText(); |
| 9 |
| 10 // FIXME: our code intentionally skips spaces, that seems wrong to me. |
| 11 // https://bugs.webkit.org/show_bug.cgi?id=8644 |
| 12 testXMLType("foo bar/baz+xml", false); |
| 13 |
| 14 testXMLType("foo[bar/baz+xml", false); |
| 15 testXMLType("foo]bar/baz+xml", false); |
| 16 testXMLType("foo(bar/baz+xml", false); |
| 17 testXMLType("foo)bar/baz+xml", false); |
| 18 testXMLType("foo<bar/baz+xml", false); |
| 19 testXMLType("foo>bar/baz+xml", false); |
| 20 testXMLType("foo@bar/baz+xml", false); |
| 21 |
| 22 runNextTest(); |
| 23 </script> |
OLD | NEW |