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

Unified Diff: LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/extensions-to-event-interface/event-path-001.html

Issue 849783002: Event.path should include Window (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: IDL sequence<T> to T[] Created 5 years, 11 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: LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/extensions-to-event-interface/event-path-001.html
diff --git a/LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/extensions-to-event-interface/event-path-001.html b/LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/extensions-to-event-interface/event-path-001.html
index 60b4a8ed94f34cd12ea4bb37347c3d468c6fb25a..a97d4352df0bc3ca8b1ed929bc0d2d5518bda1e1 100644
--- a/LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/extensions-to-event-interface/event-path-001.html
+++ b/LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/extensions-to-event-interface/event-path-001.html
@@ -35,13 +35,14 @@ t.step(unit(function(ctx) {
shadowRoot.appendChild(child);
child.addEventListener('click', t.step_func(function(e) {
- assert_equals(e.path.length, 6, 'path.length');
+ assert_equals(e.path.length, 7, 'path.length');
assert_equals(e.path[0], child, 'path[0] should be child');
assert_equals(e.path[1], shadowRoot, 'path[1] should be shadowRoot');
assert_equals(e.path[2], host, 'path[2] should be host');
assert_equals(e.path[3], doc.body, 'path[3] should be body');
assert_equals(e.path[4], doc.documentElement, 'path[4] should be html');
assert_equals(e.path[5], doc, 'path[5] should be document');
+ assert_equals(e.path[6], ctx.iframes[0].contentWindow, 'path[6] should be window');
t.done();
}));

Powered by Google App Engine
This is Rietveld 408576698