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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 Event.path should include only unclosed nodes.
2 The full event path should be (length=12):
3 div#target, #shadow-root (open), div#div3_open, #shadow-root (closed),
4 div#div2_closed, #shadow-root (open), div#host_open, div#host_closed,
5 body, html, #document, window
6
7 On #host_closed, #host_open, and #div2_closed,
8 div#target, #shadow-root (open), div#div3_open, #shadow-root (closed)
9 will be trimmed (length=8).
10
11
12 Dispaching a click event on #target, listening on #host_closed.
13 Got event.path for #host_closed:
14 #div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyEle ment], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
15
16 Dispaching a click event on #target, listening on #host_open.
17 Got event.path for #host_open:
18 #div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyEle ment], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
19
20 Dispaching a click event on #target, listening on #div2_closed.
21 Got event.path for #div2_closed:
22 #div2_closed, [object ShadowRoot], #host_open, #host_closed, [object HTMLBodyEle ment], [object HTMLHtmlElement], [object HTMLDocument], [object Window], length: 8
23
24 Dispaching a click event on #target, listening on #div3_open.
25 Got event.path for #div3_open:
26 #target, [object ShadowRoot], #div3_open, [object ShadowRoot], #div2_closed, [ob ject ShadowRoot], #host_open, #host_closed, [object HTMLBodyElement], [object HT MLHtmlElement], [object HTMLDocument], [object Window], length: 12
27
28 Dispaching a click event on #target, listening on #target.
29 Got event.path for #target:
30 #target, [object ShadowRoot], #div3_open, [object ShadowRoot], #div2_closed, [ob ject ShadowRoot], #host_open, #host_closed, [object HTMLBodyElement], [object HT MLHtmlElement], [object HTMLDocument], [object Window], length: 12
31 PASS successfullyParsed is true
32
33 TEST COMPLETE
34
OLDNEW
« 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