Bug 1412775 - Implement Event.composedPath

Tag #1375
This commit is contained in:
Matt A. Tobin 2020-04-17 07:30:43 -04:00 committed by Roy Tam
commit 2ee3ce62fc
24 changed files with 194 additions and 131 deletions

View file

@ -1,13 +1,5 @@
[Extensions-to-Event-Interface.html]
type: testharness
[composedPath() must exist on Event]
expected: FAIL
[composedPath() must return an empty array when the event has not been dispatched]
expected: FAIL
[composedPath() must return an empty array when the event is no longer dispatched]
expected: FAIL
[The event must propagate out of open mode shadow boundaries when the composed flag is set]
expected: FAIL

View file

@ -1,48 +0,0 @@
[event-composed-path-with-related-target.html]
type: testharness
expected: ERROR
[Event path for an event with a relatedTarget. relatedTarget != target.]
expected: FAIL
[Event path for an event with a relatedTarget. Event shoul be dispatched if 1) target and relatedTarget are same, and 2) they are not in a shadow tree.]
expected: FAIL
[Event path for an event with a relatedTarget. Event should stop at the shadow root]
expected: FAIL
[Event path for an event with a relatedTarget. Event should not be dispatched if 1) target and relatedTarget are same, and 2) both are in a shadow tree.]
expected: FAIL
[Event path for an event with a relatedTarget. target and relaterTarget do not share any shadow-including ancestor. target is in a shadow tree.]
expected: FAIL
[Event path for an event with a relatedTarget. target and relaterTarget do not share any shadow-including ancestor. target is not in a shadow tree]
expected: FAIL
[Event path for an event with a relatedTarget. target and relaterTarget share the same shadow-including ancestor. Both are in shadow trees.]
expected: FAIL
[Event path for an event with a relatedTarget. relaterTarget is a shadow-including ancestor of target.]
expected: FAIL
[Event path for an event with a relatedTarget. target is a shadow-including ancestor of relatedTarget.]
expected: FAIL
[Event path for an event with a relatedTarget. target is assigned to a slot.]
expected: FAIL
[Event path for an event with a relatedTarget. relatedTarget is assigned to a slot.]
expected: FAIL
[Event path for an event with a relatedTarget. Event should be dispatched at every slots.]
expected: FAIL
[Event path for an event with a relatedTarget. Event should be dispatched at every slots. relatedTarget should be correctly retargeted.]
expected: FAIL
[Event path for an event with a relatedTarget. Event should be dispatched even when target and relatedTarget are same.]
expected: FAIL
[Event path for an event with a relatedTarget which is identical to target. Event should be dispatched and should stop at the shadow root.]
expected: FAIL

View file

@ -1,36 +1,9 @@
[event-composed-path.html]
type: testharness
expected: ERROR
[Event Path without ShadowRoots.]
expected: FAIL
[Event Path with an open ShadowRoot.]
expected: FAIL
[Event Path with a closed ShadowRoot.]
expected: FAIL
[Event Path with nested ShadowRoots: open > open.]
expected: FAIL
[Event Path with nested ShadowRoots: open > closed.]
expected: FAIL
[Event Path with nested ShadowRoots: closed > open.]
expected: FAIL
[Event Path with nested ShadowRoots: closed > closed.]
expected: FAIL
[Event Path with a slot in an open Shadow Root.]
expected: FAIL
[Event Path with a slot in a closed Shadow Root.]
expected: FAIL
[Event Path with slots in nested ShadowRoots: open > open.]
expected: FAIL
[Event Path with slots in nested ShadowRoots: closed > closed.]
expected: FAIL

View file

@ -1,23 +0,0 @@
[event-composed.html]
type: testharness
[An event should be scoped by default]
expected: FAIL
[An event should not be scoped if composed is specified]
expected: FAIL
[A synthetic MouseEvent should be scoped by default]
expected: FAIL
[A synthetic MouseEvent with composed=true should not be scoped]
expected: FAIL
[A synthetic FocusEvent should be scoped by default]
expected: FAIL
[A synthetic FocusEvent with composed=true should not be scoped]
expected: FAIL
[A UA click event should not be scoped]
expected: FAIL