fast/dom/shadow/shadow-dom-event-dispatching.html flake
[WebKit-https.git] / LayoutTests / fast / dom / shadow / shadow-dom-event-dispatching-fallback-nodes.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                                 createShadowRoot(
19                                     createDOM('content', {'id': 'content1', 'select': '#none'},
20                                               createDOM('div', {'id': 'used-fallback'})),
21                                     createDOM('content', {'id': 'content2'},
22                                               createDOM('div', {'id': 'non-used-fallback'}))),
23                                 createDOM('div', {'id': 'B'}))));
24
25         addEventListeners(['top', 'A', 'B', 'A/', 'A/content1', 'A/used-fallback', 'A/content2', 'A/non-used-fallback']);
26         getNodeInShadowTreeStack('A/').id = 'shadow-root';
27         showSandboxTree();
28
29         moveMouse('A/used-fallback', 'A');
30         moveMouse('A', 'A/used-fallback');
31
32         clearEventRecords();
33         debug('\nClick non-used-fallback node');
34         getNodeInShadowTreeStack('A/non-used-fallback').click();
35         debugDispatchedEvent('click');
36     </script>
37     <script src="../../js/resources/js-test-post.js"></script>
38 </body>
39 </html>
40