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

Unified Diff: LayoutTests/fast/dom/shadow/event-path-with-dom-mutation.html

Issue 15063004: Make Event.path() return a pre-calculated NodeList rather than calculating it dynamically. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add an include. Created 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/event-path-with-dom-mutation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/event-path-with-dom-mutation.html
diff --git a/LayoutTests/fast/dom/shadow/event-path-in-shadow-tree.html b/LayoutTests/fast/dom/shadow/event-path-with-dom-mutation.html
similarity index 88%
copy from LayoutTests/fast/dom/shadow/event-path-in-shadow-tree.html
copy to LayoutTests/fast/dom/shadow/event-path-with-dom-mutation.html
index 398218d9697978fd5edcb9e6add40527d3e45c9e..387882732171a2a3ccaf8fe5966545eecf2ce1b4 100644
--- a/LayoutTests/fast/dom/shadow/event-path-in-shadow-tree.html
+++ b/LayoutTests/fast/dom/shadow/event-path-with-dom-mutation.html
@@ -34,6 +34,13 @@ sandbox.appendChild(
debug(dumpNodeList(event.path()));
});
});
+['B', 'A/E/I'].forEach(function(path) {
+ getNodeInShadowTreeStack(path).addEventListener('click', function(event) {
+ debug('\nRemoving node ' + dumpNode(event.currentTarget.firstChild));
+ event.currentTarget.removeChild(event.currentTarget.firstChild);
+ });
+});
+
var clickEvent = document.createEvent("MouseEvents");
clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
document.getElementById('C').dispatchEvent(clickEvent);
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/event-path-with-dom-mutation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698