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

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

Issue 2343923003: Make event.composedPath() on window behave the same way as that on document (Closed)
Patch Set: rebased 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/Event.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/shadow-dom/event-composed-path.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/event-composed-path.html b/third_party/WebKit/LayoutTests/shadow-dom/event-composed-path.html
index 1eb31f978e122edba210deabac97960f38e83091..e38bc16a9addeb8afb6717cd3b380b81de0a56ac 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/event-composed-path.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/event-composed-path.html
@@ -11,6 +11,15 @@
<script>
test(() => {
+ window.addEventListener('my-event', (e) => {
+ assert_array_equals(e.composedPath(), [document.body, document.documentElement, document, window]);
+ });
+ document.body.dispatchEvent(new Event('my-event', { bubbles: true, composed: true }));
+}, 'event.composedPath() on window.');
+</script>
+
+<script>
+test(() => {
let n = createTestTree(test1);
let log = dispatchEventWithLog(n, n.target, new Event('my-event', { bubbles: true, composed: true }));
let path = ['target', 'd1', 'test1'];
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/Event.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698