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

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

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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698