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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/mutation-during-replace-child.html

Issue 2889523002: MutationObserver: Correct MutationRecords for Node.replaceChild(). (Closed)
Patch Set: Add step comments Created 3 years, 7 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/fast/events/mutation-during-replace-child.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/mutation-during-replace-child.html b/third_party/WebKit/LayoutTests/fast/events/mutation-during-replace-child.html
index 3f05fb751b335d8b2a179215cc55e8678dc35b28..21cb83f9814ac2f013225c43c9681bd5a52727b0 100644
--- a/third_party/WebKit/LayoutTests/fast/events/mutation-during-replace-child.html
+++ b/third_party/WebKit/LayoutTests/fast/events/mutation-during-replace-child.html
@@ -24,7 +24,7 @@ function handler(){
newChild.appendChild(target);
}
document.addEventListener("DOMNodeRemoved", handler, false);
-shouldThrow("target.replaceChild(newChild, oldChild);", '"HierarchyRequestError: Failed to execute \'replaceChild\' on \'Node\': The new child element contains the parent."');
+shouldThrow("target.replaceChild(newChild, oldChild);", '"NotFoundError: Failed to execute \'replaceChild\' on \'Node\': The node to be removed is no longer a child of this node. Perhaps it was moved in response to a mutation?"');
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698