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

Unified Diff: LayoutTests/fast/dom/document-contentType-createDocument.html

Issue 151653004: Implemented Document.contentType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase and fixing tests on windows 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/fast/dom/document-contentType-createDocument.html
diff --git a/LayoutTests/fast/dom/document-contentType-createDocument.html b/LayoutTests/fast/dom/document-contentType-createDocument.html
new file mode 100644
index 0000000000000000000000000000000000000000..54569dd460c80e30db3fc086860a7790480aa5f9
--- /dev/null
+++ b/LayoutTests/fast/dom/document-contentType-createDocument.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<title>document.contentType</title>
+<link rel="help" href="http://dom.spec.whatwg.org/#dom-document-contenttype">
+<script src="../../resources/js-test.js"></script>
+<body>
+<script>
+var doc = document.implementation.createHTMLDocument('f');
+shouldBe('doc.contentType', '"text/html"');
+
+doc = document.implementation.createDocument(null, 'root', null);
+shouldBe('doc.contentType', '"application/xml"');
+</script>

Powered by Google App Engine
This is Rietveld 408576698