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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-manually-fired-with-same-related-target.html

Issue 1684533002: Rename "tree of trees" to "composed tree". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="resources/shadow-dom.js"></script> 5 <script src="resources/shadow-dom.js"></script>
6 <script src="resources/event-dispatching.js"></script> 6 <script src="resources/event-dispatching.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <p id="description"></p> 9 <p id="description"></p>
10 <div id="sandbox"></div> 10 <div id="sandbox"></div>
11 <pre id="console"></pre> 11 <pre id="console"></pre>
12 <script> 12 <script>
13 var sandbox = document.getElementById('sandbox'); 13 var sandbox = document.getElementById('sandbox');
14 14
15 sandbox.appendChild( 15 sandbox.appendChild(
16 createDOM('div', {'id': 'top'}, 16 createDOM('div', {'id': 'top'},
17 createDOM('div', {'id': 'host'}, 17 createDOM('div', {'id': 'host'},
18 createShadowRoot({'id': 'shadow-root'}, 18 createShadowRoot({'id': 'shadow-root'},
19 createDOM('div', {'id': 'div1'} ))))); 19 createDOM('div', {'id': 'div1'} )))));
20 20
21 addEventListeners(['top', 'host', 'host/', 'host/div1']); 21 addEventListeners(['top', 'host', 'host/', 'host/div1']);
22 showSandboxTree(); 22 showSandboxTree();
23 23
24 var div1 = getNodeInTreeOfTrees('host/div1'); 24 var div1 = getNodeInComposedTree('host/div1');
25 25
26 clearEventRecords(); 26 clearEventRecords();
27 var event = document.createEvent("MouseEvents"); 27 var event = document.createEvent("MouseEvents");
28 event.initMouseEvent("mouseover", true, false, window, 28 event.initMouseEvent("mouseover", true, false, window,
29 0, 10, 10, 10, 10, false, false, false, false, 0, d iv1); 29 0, 10, 10, 10, 10, false, false, false, false, 0, d iv1);
30 div1.dispatchEvent(event); 30 div1.dispatchEvent(event);
31 31
32 debugDispatchedEvent('mouseout'); 32 debugDispatchedEvent('mouseout');
33 debugDispatchedEvent('mouseover'); 33 debugDispatchedEvent('mouseover');
34 </script> 34 </script>
35 </body> 35 </body>
36 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698