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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/v0/event-composed-path.html

Issue 2056213002: Add tests for retargeted event.target in LayoutTests/shadow-dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@events-1
Patch Set: rebased Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/shadow-dom/v0/event-composed-path.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/v0/event-composed-path.html b/third_party/WebKit/LayoutTests/shadow-dom/v0/event-composed-path.html
index 328e5d58a5ead5688045b23170af4baed532a6d5..c2c619bf816f79ba0e8b299f37b340ef6a3ccd1b 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/v0/event-composed-path.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/v0/event-composed-path.html
@@ -20,9 +20,16 @@ test(() => {
let n = createTestTree(test1);
removeWhiteSpaceOnlyTextNodes(n.test1);
let log = dispatchEventWithLog(n, n.input, new Event('my-event', { bubbles: true, compsoed: true }));
+ let path = ['input', 'slot', 'slot-parent', 'content', 'shadowroot-v0', 'host',
+ 'shadowroot-v1', 'test1'];
assert_event_path_equals(log,
- makeExpectedEventPathLog(
- ['input', 'slot', 'slot-parent', 'content', 'shadowroot-v0', 'host',
- 'shadowroot-v1', 'test1']));
+ [['input', 'input', null, path],
+ ['slot', 'input', null, path],
+ ['slot-parent', 'input', null, path],
+ ['content', 'input', null, path],
+ ['shadowroot-v0', 'input', null, path],
+ ['host', 'input', null, path],
+ ['shadowroot-v1', 'input', null, path],
+ ['test1', 'input', null, path]]);
}, 'EventPath works fine with v0 insertion points & v1 slots.');
</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698