fast/dom/shadow/shadow-dom-event-dispatching.html flake
[WebKit-https.git] / LayoutTests / fast / dom / shadow / shadow-dom-event-dispatching-child-of-inactive-content.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': 'A'}),
18                       createDOM('div', {'id': 'B'},
19                                 createShadowRoot(
20                                     createDOM('content', {'id': 'active-content', 'select': '#parent-of-inactive-content'})),
21                                 createDOM('div', {'id': 'parent-of-inactive-content'},
22                                           createDOM('content', {'id': 'inactive-content'},
23                                                     createDOM('div', {'id': 'child-of-inactive-content'}))))));
24
25         addEventListeners(['top', 'A', 'B', 'B/', 'B/active-content',
26                            'parent-of-inactive-content', 'inactive-content', 'child-of-inactive-content']);
27         getNodeInShadowTreeStack('B/').id = 'shadow-root-B';
28         showSandboxTree();
29         moveMouse('A', 'child-of-inactive-content');
30     </script>
31     <script src="../../js/resources/js-test-post.js"></script>
32 </body>
33 </html>
34