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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/supported-xml-content-types-strange-valid-1.html

Issue 198893002: Make supported-xml-content-types.html tests faster. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More splitting Created 6 years, 9 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/supported-xml-content-types-strange-valid-1.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/supported-xml-content-types-strange-valid-1.html b/LayoutTests/http/tests/xmlhttprequest/supported-xml-content-types-strange-valid-1.html
new file mode 100644
index 0000000000000000000000000000000000000000..c1976c27535099189b50c62be12cb978574ed6a9
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/supported-xml-content-types-strange-valid-1.html
@@ -0,0 +1,20 @@
+<!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();
+
+// They may be strange, but these should all be valid:
+testXMLType("foo_bar/baz+xml", true);
+testXMLType("foo-bar/baz+xml", true);
+testXMLType("foo+bar/baz+xml", true);
+testXMLType("foo~bar/baz+xml", true);
+testXMLType("foo!bar/baz+xml", true);
+testXMLType("foo$bar/baz+xml", true);
+testXMLType("foo^bar/baz+xml", true);
+
+runNextTest();
+</script>

Powered by Google App Engine
This is Rietveld 408576698