| Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-replaceChild.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-replaceChild.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-replaceChild.html
|
| index 6088f62e0c038e0949fe525f04e0ebdef8c9beb8..4fbdad5573031b0dd457ff252eca3bbea66c6ccb 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-replaceChild.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-replaceChild.html
|
| @@ -37,14 +37,8 @@ test(function() {
|
| a.replaceChild(b, c);
|
| });
|
| assert_throws("NotFoundError", function() {
|
| - a.replaceChild(a, c);
|
| - });
|
| - assert_throws("NotFoundError", function() {
|
| a.replaceChild(b, a);
|
| });
|
| - assert_throws("NotFoundError", function() {
|
| - a.replaceChild(a, a);
|
| - });
|
| }, "If child's parent is not the context node, a NotFoundError exception should be thrown")
|
| test(function() {
|
| var nodes = [
|
| @@ -67,6 +61,11 @@ test(function() {
|
| test(function() {
|
| var a = document.createElement("div");
|
| var b = document.createElement("div");
|
| +
|
| + assert_throws("HierarchyRequestError", function() {
|
| + a.replaceChild(a, a);
|
| + });
|
| +
|
| a.appendChild(b);
|
| assert_throws("HierarchyRequestError", function() {
|
| a.replaceChild(a, b);
|
|
|