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> |