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

Unified Diff: LayoutTests/fast/dom/shadow/event-path-closed-shadowroot-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
Index: LayoutTests/fast/dom/shadow/event-path-closed-shadowroot-expected.txt
diff --git a/LayoutTests/fast/dom/shadow/event-path-closed-shadowroot-expected.txt b/LayoutTests/fast/dom/shadow/event-path-closed-shadowroot-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..69c9380d41a5c5663ef49f32c75ca00b3f69950c
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/event-path-closed-shadowroot-expected.txt
@@ -0,0 +1,29 @@
+Event.path should include only unclosed nodes.
+
+Dispaching a click event on #target_open, listening on #target_open.
+PASS eventPath.length is 9
+
+event.path for #target_open:
+#target_open, #open_shadow_in_open_shadow, #inner_open, #open_shadow, #host_open, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 9
+
+Dispaching a click event on #target_closed, listening on #target_closed.
+PASS eventPath.length is 9
+
+event.path for #target_closed:
+#target_closed, #open_shadow_in_closed_shadow, #inner_closed, #closed_shadow, #host_closed, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 9
+
+Dispaching a click event on #target_open, listening on document.body.
+PASS eventPath.length is 9
+
+event.path for #target_open:
+#target_open, #open_shadow_in_open_shadow, #inner_open, #open_shadow, #host_open, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 9
+
+Dispaching a click event on #target_closed, listening on document.body.
+PASS eventPath.length is 5
+
+event.path for #target_closed:
+#host_closed, [object HTMLBodyElement], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 5
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698