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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/MutationObserver/removed-out-of-order.html

Issue 2306323002: Change the timing of event dispatching and <script> execution in Node::appendChild, insertBefore,... (Closed)
Patch Set: Created 4 years, 3 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/dom/MutationObserver/removed-out-of-order.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/MutationObserver/removed-out-of-order.html b/third_party/WebKit/LayoutTests/fast/dom/MutationObserver/removed-out-of-order.html
index b9f69a4692795d191f884fbe7ba71672316e8af8..394799115c3b9b6b390049fcbbc09e7ff73a2557 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/MutationObserver/removed-out-of-order.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/MutationObserver/removed-out-of-order.html
@@ -17,12 +17,12 @@ sandbox.innerHTML = '<b></b><i></i>';
var mutations = observer.takeRecords();
shouldBe("mutations.length", "2");
-shouldBe("mutations[0].addedNodes.length", "1");
+shouldBe("mutations[0].addedNodes.length", "2");
shouldBe("mutations[0].removedNodes.length", "0");
shouldBe("mutations[0].addedNodes[0].tagName", "'B'");
-shouldBe("mutations[1].addedNodes.length", "1");
+shouldBe("mutations[1].addedNodes.length", "0");
shouldBe("mutations[1].removedNodes.length", "1");
shouldBe("mutations[1].removedNodes[0].tagName", "'B'");
-shouldBe("mutations[1].addedNodes[0].tagName", "'I'");
+shouldBeUndefined("mutations[1].addedNodes[0]");
</script>
</script>

Powered by Google App Engine
This is Rietveld 408576698