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

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

Issue 1854003004: Import web-platform-tests@5a8700479d98852455bee6117558897867eb278a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 This is a testharness.js-based test. 1 This is a testharness.js-based test.
2 PASS Passing null to replaceChild should throw a TypeError. 2 PASS Passing null to replaceChild should throw a TypeError.
3 FAIL If child's parent is not the context node, a NotFoundError exception should be thrown assert_throws: function "function () { 3 PASS If child's parent is not the context node, a NotFoundError exception should be thrown
4 a.replaceChild(a, c);
5 }" threw object "HierarchyRequestError: Failed to execute 'replaceChild' o..." that is not a DOMException NotFoundError: property "code" is equal to 3, expect ed 8
6 PASS If the context node is not a node that can contain children, a NotFoundErro r exception should be thrown 4 PASS If the context node is not a node that can contain children, a NotFoundErro r exception should be thrown
7 PASS If node is an inclusive ancestor of the context node, a HierarchyRequestErr or should be thrown. 5 FAIL If node is an inclusive ancestor of the context node, a HierarchyRequestErr or should be thrown. assert_throws: function "function () {
6 a.replaceChild(a, a);
7 }" did not throw
8 PASS If the context node is a document, inserting a document or text node should throw a HierarchyRequestError. 8 PASS If the context node is a document, inserting a document or text node should throw a HierarchyRequestError.
9 PASS If the context node is a document, inserting a DocumentFragment that contai ns a text node or too many elements should throw a HierarchyRequestError. 9 PASS If the context node is a document, inserting a DocumentFragment that contai ns a text node or too many elements should throw a HierarchyRequestError.
10 PASS If the context node is a document (without element children), inserting a D ocumentFragment that contains multiple elements should throw a HierarchyRequestE rror. 10 PASS If the context node is a document (without element children), inserting a D ocumentFragment that contains multiple elements should throw a HierarchyRequestE rror.
11 PASS If the context node is a document, inserting a DocumentFragment with an ele ment if there already is an element child should throw a HierarchyRequestError. 11 PASS If the context node is a document, inserting a DocumentFragment with an ele ment if there already is an element child should throw a HierarchyRequestError.
12 FAIL If the context node is a document, inserting a DocumentFragment with an ele ment before the doctype should throw a HierarchyRequestError. assert_throws: fun ction "function () { 12 FAIL If the context node is a document, inserting a DocumentFragment with an ele ment before the doctype should throw a HierarchyRequestError. assert_throws: fun ction "function () {
13 doc.replaceChild(df, comment); 13 doc.replaceChild(df, comment);
14 }" did not throw 14 }" did not throw
15 PASS If the context node is a document, inserting an element if there already is an element child should throw a HierarchyRequestError. 15 PASS If the context node is a document, inserting an element if there already is an element child should throw a HierarchyRequestError.
16 FAIL If the context node is a document, inserting an element before the doctype should throw a HierarchyRequestError. assert_throws: function "function () { 16 FAIL If the context node is a document, inserting an element before the doctype should throw a HierarchyRequestError. assert_throws: function "function () {
17 doc.replaceChild(a, comment); 17 doc.replaceChild(a, comment);
18 }" did not throw 18 }" did not throw
19 PASS If the context node is a document, inserting a doctype if there already is a doctype child should throw a HierarchyRequestError. 19 PASS If the context node is a document, inserting a doctype if there already is a doctype child should throw a HierarchyRequestError.
20 FAIL If the context node is a document, inserting a doctype after the document e lement should throw a HierarchyRequestError. assert_throws: function "function ( ) { 20 FAIL If the context node is a document, inserting a doctype after the document e lement should throw a HierarchyRequestError. assert_throws: function "function ( ) {
21 doc.replaceChild(doctype, comment); 21 doc.replaceChild(doctype, comment);
22 }" did not throw 22 }" did not throw
23 PASS If the context node is a DocumentFragment, inserting a document or a doctyp e should throw a HierarchyRequestError. 23 PASS If the context node is a DocumentFragment, inserting a document or a doctyp e should throw a HierarchyRequestError.
24 PASS If the context node is an element, inserting a document or a doctype should throw a HierarchyRequestError. 24 PASS If the context node is an element, inserting a document or a doctype should throw a HierarchyRequestError.
25 PASS Replacing a node with its next sibling should work (2 children) 25 PASS Replacing a node with its next sibling should work (2 children)
26 PASS Replacing a node with its next sibling should work (4 children) 26 PASS Replacing a node with its next sibling should work (4 children)
27 PASS Replacing a node with itself should not move the node 27 PASS Replacing a node with itself should not move the node
28 PASS If the context node is a document, inserting a new doctype should work. 28 PASS If the context node is a document, inserting a new doctype should work.
29 PASS Replacing the document element with a DocumentFragment containing a single element should work. 29 PASS Replacing the document element with a DocumentFragment containing a single element should work.
30 PASS Replacing the document element with a DocumentFragment containing a single element and comments should work. 30 PASS Replacing the document element with a DocumentFragment containing a single element and comments should work.
31 PASS Replacing the document element with a single element should work. 31 PASS Replacing the document element with a single element should work.
32 PASS replaceChild should work in the presence of mutation events. 32 PASS replaceChild should work in the presence of mutation events.
33 PASS Replacing an element with a DocumentFragment should allow a child of the Do cumentFragment to be found by Id. 33 PASS Replacing an element with a DocumentFragment should allow a child of the Do cumentFragment to be found by Id.
34 Harness: the test ran to completion. 34 Harness: the test ran to completion.
35 35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698