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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-with-slot.html

Issue 2014173002: Rename Event.deepPath() to Event.composedPath() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert devtools.js Created 4 years, 7 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/shadow-dom/event-deeppath-with-slot.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-with-slot.html b/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-with-slot.html
index 5c7d3c47f4ddaa9a9565b4fd841ae37ddd186936..4d476af6ae5f8a2b4c94915af5ca2db32fe1808a 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-with-slot.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-with-slot.html
@@ -43,7 +43,7 @@ test(function() {
var shadowRoot = host1.shadowRoot;
input1.onfocus = function(e) {
var expected_array1 = [input1, slot1, shadowRoot, host1, document.body, document.documentElement, document, window];
- assert_array_equals(e.deepPath(), expected_array1);
+ assert_array_equals(e.composedPath(), expected_array1);
};
input1.focus();
}, 'Triggered in a slotted element, eventPath should go through shadow tree.');
@@ -62,7 +62,7 @@ test(function() {
input2.onfocus = function(e) {
var expected_array2 = [input2, slot2, slotParent, content, shadowRootV0, host3, shadowRootV1, host2, document.body, document.documentElement, document, window];
- assert_array_equals(e.deepPath(), expected_array2);
+ assert_array_equals(e.composedPath(), expected_array2);
};
input2.focus();
}, 'EventPath works fine with v0 insertion points & v1 slots.');
@@ -76,7 +76,7 @@ test(function() {
var inputParent = document.getElementById('input-parent');
input3.onfocus = function(e) {
var expected_array3 = [input3, inputParent, slot3, shadowRoot2, host4, document.body, document.documentElement, document, window];
- assert_array_equals(e.deepPath(), expected_array3);
+ assert_array_equals(e.composedPath(), expected_array3);
};
input3.focus();
}, 'EventPath works fine when event happens to a descendant of a slotted element.');

Powered by Google App Engine
This is Rietveld 408576698