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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/range-surround-contents.html

Issue 2745443003: DOM Range: surroundContents() should not check if newParent is in ancestors beforehand. (Closed)
Patch Set: . Created 3 years, 9 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/shadow-dom/range-surround-contents.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/range-surround-contents.html b/third_party/WebKit/LayoutTests/shadow-dom/range-surround-contents.html
index 806466289c24abe1c924af055f6eb30f52592589..214f6a134092cf6b7afed07feed2341dcd75fe04 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/range-surround-contents.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/range-surround-contents.html
@@ -37,8 +37,7 @@ function testSurroundContents(description, targetPath, newParent) {
assert_throws("HierarchyRequestError", function () {
range.surroundContents(newParent);
});
- var targetAfter = getNodeInComposedTree(targetPath);
- assert_equals(targetAfter, target, "DOM should not change after HierarchyRequestError");
+ assert_equals(newParent.firstChild, null, newParent.id + " should not have children after surroundContents()");
}, description);
}

Powered by Google App Engine
This is Rietveld 408576698