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

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

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
Index: LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err-expected.txt
diff --git a/LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err-expected.txt b/LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..53b758cdb720cb4e3c6af9bb451ad0f05a4f3923
--- /dev/null
+++ b/LayoutTests/fast/dom/DOMImplementation/createDocument-doctype-err-expected.txt
@@ -0,0 +1,12 @@
+PASS doctype is an instance of DocumentType
+PASS document.implementation.createDocument(null, null, doctype) did not throw exception.
+PASS document.implementation.createDocument(null, null, undefined) did not throw exception.
+PASS document.implementation.createDocument(null, null, null) did not throw exception.
+PASS document.implementation.createDocument(null, null, false) threw exception TypeError: Failed to execute 'createDocument' on 'DOMImplementation': parameter 3 is not of type 'DocumentType'..
+PASS document.implementation.createDocument(null, null, 0) threw exception TypeError: Failed to execute 'createDocument' on 'DOMImplementation': parameter 3 is not of type 'DocumentType'..
+PASS document.implementation.createDocument(null, null, '') threw exception TypeError: Failed to execute 'createDocument' on 'DOMImplementation': parameter 3 is not of type 'DocumentType'..
+PASS document.implementation.createDocument(null, null, {}) threw exception TypeError: Failed to execute 'createDocument' on 'DOMImplementation': parameter 3 is not of type 'DocumentType'..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698