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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/event-composed-path-with-related-target.html

Issue 2408493002: Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: Added one more win7-specific baseline Created 4 years, 2 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: 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 24072aa15d3dbcc4d1e27ef011bbcd231c65b197..675a7d7b12f80a6f4b51874097527c02c5aa86cc 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 @@ test(() => {
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 shoul be dispatched if 1) target and relatedTarget are same, and 2) they are not in a shadow tree.');
+}, 'Event path for an event with a relatedTarget. Event should be dispatched even when target and relatedTarget are same.');
</script>
<div id="test2">
@@ -51,8 +51,10 @@ test(() => {
test(() => {
let n = createTestTree(test2);
let log = dispatchEventWithLog(n, n.target, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.target }));
- 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.');
+ 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.');
</script>
<div id="test3_1">
@@ -134,7 +136,9 @@ test(() => {
test(() => {
let n = createTestTree(test4);
let log = dispatchEventWithLog(n, n.host1, new FocusEvent('my-focus', { bubbles: true, composed: true, relatedTarget: n.target }));
- assert_event_path_equals(log, []);
+ let path = ['host1', 'test4'];
+ assert_event_path_equals(log, [['host1', 'host1', 'host1', path],
+ ['test4', 'host1', 'host1', path]]);
}, 'Event path for an event with a relatedTarget. target is a shadow-including ancestor of relatedTarget.');
</script>

Powered by Google App Engine
This is Rietveld 408576698