| Index: third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-closed-shadowroot.html
|
| diff --git a/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-closed-shadowroot.html b/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-closed-shadowroot.html
|
| index e420fbac093d7fe1a806adb727269106bcbdbb2f..9341a3fc44acc4cf395e2c11a8f5b756105b0a42 100644
|
| --- a/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-closed-shadowroot.html
|
| +++ b/third_party/WebKit/LayoutTests/shadow-dom/event-deeppath-closed-shadowroot.html
|
| @@ -22,10 +22,10 @@ function prepareTree() {
|
| }
|
|
|
| function clickHandler(e) {
|
| - eventPath = e.deepPath();
|
| + eventPath = e.composedPath();
|
| }
|
|
|
| -debug('Event.deepPath() should include only unclosed nodes.');
|
| +debug('Event.composedPath() should include only unclosed nodes.');
|
|
|
| prepareTree();
|
|
|
| @@ -41,7 +41,7 @@ targetOpen.click();
|
| // Expected: <span#target_open>, #open_shadow_in_open_shadow, <div#inner_open>,
|
| // #open_shadow, <div#host_open>, <body>, <html>, #document, window
|
| shouldBe('eventPath.length', '9');
|
| -debug("\nevent.deepPath() for #target_open:");
|
| +debug("\nevent.composedPath() for #target_open:");
|
| debug(dumpNodeList(eventPath));
|
|
|
| debug("\nDispaching a click event on #target_closed, listening on #target_closed.");
|
| @@ -50,7 +50,7 @@ targetClosed.click();
|
| // Expected: <span#target_closed>, #open_shadow_in_closed_shadow, <div#inner_closed>,
|
| // #closed_shadow, <div#host_closed>, <body>, <html>, #document, window
|
| shouldBe('eventPath.length', '9');
|
| -debug("\nevent.deepPath() for #target_closed:");
|
| +debug("\nevent.composedPath() for #target_closed:");
|
| debug(dumpNodeList(eventPath));
|
|
|
|
|
| @@ -64,7 +64,7 @@ targetOpen.click();
|
| // Expected: <span#target_open>, #open_shadow_in_open_shadow, <div#inner_open>,
|
| // #open_shadow, <div#host_open>, <body>, <html>, #document, window
|
| shouldBe('eventPath.length', '9');
|
| -debug("\nevent.deepPath() for #target_open:");
|
| +debug("\nevent.composedPath() for #target_open:");
|
| debug(dumpNodeList(eventPath));
|
|
|
| debug("\nDispaching a click event on #target_closed, listening on document.body.");
|
| @@ -74,6 +74,6 @@ targetClosed.click();
|
| // thus 9 - 4 = 5.
|
| // Expected: <div#host_closed>, <body>, <html>, #document, window
|
| shouldBe('eventPath.length', '5');
|
| -debug("\nevent.deepPath() for #target_closed:");
|
| +debug("\nevent.composedPath() for #target_closed:");
|
| debug(dumpNodeList(eventPath));
|
| </script>
|
|
|