fast/dom/shadow/shadow-dom-event-dispatching.html flake
[WebKit-https.git] / LayoutTests / fast / dom / shadow / shadow-dom-event-dispatching-distributed-child.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <script src="../../js/resources/js-test-pre.js"></script>
5     <script src="resources/shadow-dom.js"></script>
6     <script src="resources/event-dispatching.js"></script>
7 </head>
8 <body>
9     <p id="description"></p>
10     <div id="sandbox"></div>
11     <pre id="console"></pre>
12     <script>
13         var sandbox = document.getElementById('sandbox');
14
15         sandbox.appendChild(
16             createDOM('div', {'id': 'top'},
17                       createDOM('div', {'id': 'shadow-host'},
18                                 createShadowRoot(
19                                     createDOM('content', {'id': 'content', 'select': '#distributed-light-child',}),
20                                     createDOM('div', {'id': 'shadow-root-child'})),
21                                 createDOM('div', {'id': 'distributed-light-child'}),
22                                 createDOM('div', {'id': 'non-distributed-light-child'}))));
23
24         addEventListeners(['top', 'shadow-host', 'shadow-host/', 'shadow-host/content', 'shadow-host/shadow-root-child',
25                            'distributed-light-child', 'non-distributed-light-child']);
26         getNodeInShadowTreeStack('shadow-host/').id = 'shadow-root';
27         showSandboxTree();
28
29         moveMouse('shadow-host', 'shadow-host/shadow-root-child');
30         moveMouse('shadow-host/shadow-root-child', 'shadow-host');
31
32         moveMouse('shadow-host', 'distributed-light-child');
33         moveMouse('distributed-light-child', 'shadow-host');
34
35         moveMouse('shadow-host/shadow-root-child', 'distributed-light-child');
36         moveMouse('distributed-light-child', 'shadow-host/shadow-root-child');
37     </script>
38     <script src="../../js/resources/js-test-post.js"></script>
39 </body>
40 </html>
41