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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-closed-shadowroot2.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-closed-shadowroot2.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-closed-shadowroot2.html b/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-closed-shadowroot2.html
index 0d8ecb9d5d42d925ea3ba318040f8527bb038ad8..f3f9b3e0b336f79792f5714362fdeff54e6ca0ad 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-closed-shadowroot2.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-closed-shadowroot2.html
@@ -21,7 +21,7 @@ function prepareTree() {
createDOM('div', {id: 'target'})))))))));
}
-debug('Event.deepPath() should include only unclosed nodes.');
+debug('Event.composedPath() should include only unclosed nodes.');
prepareTree();
@@ -40,13 +40,13 @@ debug('On #host_closed, #host_open, and #div2_closed,\n' +
var node = getNodeInComposedTree(nodePath);
var eventPath;
- var clickHandler = function(e) { eventPath = e.deepPath(); };
+ var clickHandler = function(e) { eventPath = e.composedPath(); };
node.addEventListener('click', clickHandler, false);
debug('\nDispaching a click event on #target, listening on #' + node.id + '.');
eventPath = null;
target.click();
- debug('Got event.deepPath() for #' + node.id + ':');
+ debug('Got event.composedPath() for #' + node.id + ':');
debug(dumpNodeList(eventPath));
node.removeEventListener('click', clickHandler, false);

Powered by Google App Engine
This is Rietveld 408576698