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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/event-composed-path-closed-shadowroot.html

Issue 2051743002: Rename deep-path to composed-path in LayoutTests/shadow-dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean-tests-2
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/shadow-dom/event-composed-path-closed-shadowroot-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script src="../resources/js-test.js"></script> 2 <script src="../resources/js-test.js"></script>
3 <script src="../fast/dom/shadow/resources/shadow-dom.js"></script> 3 <script src="../fast/dom/shadow/resources/shadow-dom.js"></script>
4 <body></body> 4 <body></body>
5 <script> 5 <script>
6 function prepareTree() { 6 function prepareTree() {
7 document.body.appendChild( 7 document.body.appendChild(
8 createDOM('div', {id: 'host_open'}, 8 createDOM('div', {id: 'host_open'},
9 attachShadow({mode: 'open', id: 'open_shadow'}, 9 attachShadow({mode: 'open', id: 'open_shadow'},
10 createDOM('div', {id: 'inner_open'}, 10 createDOM('div', {id: 'inner_open'},
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 debug("\nDispaching a click event on #target_closed, listening on document.body. "); 70 debug("\nDispaching a click event on #target_closed, listening on document.body. ");
71 eventPath = null; 71 eventPath = null;
72 targetClosed.click(); 72 targetClosed.click();
73 // For this test, <span> and closed shadow root are excluded from the open shado w case, 73 // For this test, <span> and closed shadow root are excluded from the open shado w case,
74 // thus 9 - 4 = 5. 74 // thus 9 - 4 = 5.
75 // Expected: <div#host_closed>, <body>, <html>, #document, window 75 // Expected: <div#host_closed>, <body>, <html>, #document, window
76 shouldBe('eventPath.length', '5'); 76 shouldBe('eventPath.length', '5');
77 debug("\nevent.composedPath() for #target_closed:"); 77 debug("\nevent.composedPath() for #target_closed:");
78 debug(dumpNodeList(eventPath)); 78 debug(dumpNodeList(eventPath));
79 </script> 79 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/shadow-dom/event-composed-path-closed-shadowroot-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698