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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-replaceChild-expected.txt

Issue 1529523002: Import dom/ from web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak W3CImportExpectations Created 5 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: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-replaceChild-expected.txt
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-replaceChild-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-replaceChild-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ccdc0f776007d613556eaff3b2b229806be74536
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-replaceChild-expected.txt
@@ -0,0 +1,35 @@
+This is a testharness.js-based test.
+PASS Passing null to replaceChild should throw a TypeError.
+FAIL If child's parent is not the context node, a NotFoundError exception should be thrown assert_throws: function "function () {
+ a.replaceChild(a, c);
+ }" threw object "HierarchyRequestError: Failed to execute 'replaceChild' o..." that is not a DOMException NotFoundError: property "code" is equal to 3, expected 8
+PASS If the context node is not a node that can contain children, a NotFoundError exception should be thrown
+PASS If node is an inclusive ancestor of the context node, a HierarchyRequestError should be thrown.
+PASS If the context node is a document, inserting a document or text node should throw a HierarchyRequestError.
+PASS If the context node is a document, inserting a DocumentFragment that contains a text node or too many elements should throw a HierarchyRequestError.
+PASS If the context node is a document (without element children), inserting a DocumentFragment that contains multiple elements should throw a HierarchyRequestError.
+PASS If the context node is a document, inserting a DocumentFragment with an element if there already is an element child should throw a HierarchyRequestError.
+FAIL If the context node is a document, inserting a DocumentFragment with an element before the doctype should throw a HierarchyRequestError. assert_throws: function "function () {
+ doc.replaceChild(df, comment);
+ }" did not throw
+PASS If the context node is a document, inserting an element if there already is an element child should throw a HierarchyRequestError.
+FAIL If the context node is a document, inserting an element before the doctype should throw a HierarchyRequestError. assert_throws: function "function () {
+ doc.replaceChild(a, comment);
+ }" did not throw
+PASS If the context node is a document, inserting a doctype if there already is a doctype child should throw a HierarchyRequestError.
+FAIL If the context node is a document, inserting a doctype after the document element should throw a HierarchyRequestError. assert_throws: function "function () {
+ doc.replaceChild(doctype, comment);
+ }" did not throw
+PASS If the context node is a DocumentFragment, inserting a document or a doctype should throw a HierarchyRequestError.
+PASS If the context node is an element, inserting a document or a doctype should throw a HierarchyRequestError.
+PASS Replacing a node with its next sibling should work (2 children)
+PASS Replacing a node with its next sibling should work (4 children)
+PASS Replacing a node with itself should not move the node
+PASS If the context node is a document, inserting a new doctype should work.
+PASS Replacing the document element with a DocumentFragment containing a single element should work.
+PASS Replacing the document element with a DocumentFragment containing a single element and comments should work.
+PASS Replacing the document element with a single element should work.
+PASS replaceChild should work in the presence of mutation events.
+PASS Replacing an element with a DocumentFragment should allow a child of the DocumentFragment to be found by Id.
+Harness: the test ran to completion.
+

Powered by Google App Engine
This is Rietveld 408576698