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

Unified Diff: LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err.html

Issue 762383004: Sync DOMImplementation.createDocument() IDL with spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err.html
diff --git a/LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err.html b/LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e23f824afa8e67a1fae60006e1ba89ed797d4e6
--- /dev/null
+++ b/LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+var doctype = document.implementation.createDocumentType("x", "x", "x");
+shouldBeType("doctype", "DocumentType");
+shouldNotThrow("document.implementation.createDocument(null, null, doctype)");
+shouldNotThrow("document.implementation.createDocument(null, null, undefined)");
+shouldNotThrow("document.implementation.createDocument(null, null, null)");
+
+shouldThrow("document.implementation.createDocument(null, null, false)");
+shouldThrow("document.implementation.createDocument(null, null, 0)");
+shouldThrow("document.implementation.createDocument(null, null, '')");
+shouldThrow("document.implementation.createDocument(null, null, {})");
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698