| Index: third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path-with-related-target.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path-with-related-target.html b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path-with-related-target.html
|
| index 675a7d7b12f80a6f4b51874097527c02c5aa86cc..24072aa15d3dbcc4d1e27ef011bbcd231c65b197 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path-with-related-target.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path-with-related-target.html
|
| @@ -27,7 +27,7 @@
|
| let path = ['target', 'test1'];
|
| assert_event_path_equals(log, [['target', 'target', 'target', path],
|
| ['test1', 'target', 'target', path]]);
|
| -}, 'Event path for an event with a relatedTarget. Event should be dispatched even when target and relatedTarget are same.');
|
| +}, '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.');
|
| </script>
|
|
|
| <div id="test2">
|
| @@ -51,10 +51,8 @@
|
| test(() => {
|
| let n = createTestTree(test2);
|
| let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.target }));
|
| - let path = ['target', 'sr'];
|
| - assert_event_path_equals(log, [['target', 'target', 'target', path],
|
| - ['sr', 'target', 'target', path]]);
|
| -}, 'Event path for an event with a relatedTarget which is identical to target. Event should be dispatched and should stop at the shadow root.');
|
| + assert_event_path_equals(log, []);
|
| +}, '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.');
|
| </script>
|
|
|
| <div id="test3_1">
|
| @@ -136,9 +134,7 @@
|
| test(() => {
|
| let n = createTestTree(test4);
|
| let log = dispatchEventWithLog(n, n.host1, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.target }));
|
| - let path = ['host1', 'test4'];
|
| - assert_event_path_equals(log, [['host1', 'host1', 'host1', path],
|
| - ['test4', 'host1', 'host1', path]]);
|
| + assert_event_path_equals(log, []);
|
| }, 'Event path for an event with a relatedTarget. target is a shadow-including ancestor of relatedTarget.');
|
| </script>
|
|
|
|
|