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

Unified Diff: LayoutTests/fast/dom/shadow/event-path-closed-shadowroot2-expected.txt

Issue 1305733002: Fix for calculation of event.path for closed mode shadow root (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: isUnclosedTreeOf() Created 5 years, 4 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 | « LayoutTests/fast/dom/shadow/event-path-closed-shadowroot2.html ('k') | Source/core/events/EventPath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/event-path-closed-shadowroot2-expected.txt
diff --git a/LayoutTests/fast/dom/shadow/event-path-closed-shadowroot2-expected.txt b/LayoutTests/fast/dom/shadow/event-path-closed-shadowroot2-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..0d65da5c8c12c736d4f3a609e26565e89610430c
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/event-path-closed-shadowroot2-expected.txt
@@ -0,0 +1,34 @@
+Event.path should include only unclosed nodes.
+The full event path should be (length=12):
+div#target, #shadow-root (open), div#div3_open, #shadow-root (closed),
+div#div2_closed, #shadow-root (open), div#host_open, div#host_closed,
+body, html, #document, window
+
+On #host_closed, #host_open, and #div2_closed,
+div#target, #shadow-root (open), div#div3_open, #shadow-root (closed)
+will be trimmed (length=8).
+
+
+Dispaching a click event on #target, listening on #host_closed.
+Got event.path for #host_closed:
+#div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
+
+Dispaching a click event on #target, listening on #host_open.
+Got event.path for #host_open:
+#div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
+
+Dispaching a click event on #target, listening on #div2_closed.
+Got event.path for #div2_closed:
+#div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
+
+Dispaching a click event on #target, listening on #div3_open.
+Got event.path for #div3_open:
+#target, [object ShadowRoot], #div3_open, [object ShadowRoot], #div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 12
+
+Dispaching a click event on #target, listening on #target.
+Got event.path for #target:
+#target, [object ShadowRoot], #div3_open, [object ShadowRoot], #div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 12
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/dom/shadow/event-path-closed-shadowroot2.html ('k') | Source/core/events/EventPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698