Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-menubar-menuitems.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script src="../resources/accessibility-helper.js"></script>
6 </head>
7 <body id="body">
8
9 <ul id="menubar" role="menubar" aria-owns="menuitem1 menuitem2">
10   <li id="menuitem1" role="menuitem" tabindex="0" aria-owns="submenu1">
11     Menu 1
12     <ul id="submenu1" role="menu">
13       <li id="menuitem11" role="menuitemradio" tabindex="-1">
14         Menu item 1.1
15       </li>
16     </ul>
17   </li>
18   <li id="menuitem2" role="menuitem" tabindex="0" aria-owns="submenu2">
19     Menu 2
20     <ul id="submenu2" role="menu">
21       <li id="menuitem21" role="menuitemradio" tabindex="-1">
22         Menu item 2.1
23       </li>
24       <li id="menuitem22" role="menuitemradio" tabindex="-1">
25         Menu item 2.2
26       </li>
27     </ul>
28   </li>
29 </ul>
30 <pre id="tree"></pre>
31 <p id="description"></p>
32 <div id="console"></div>
33 <script>
34 description("This tests that ARIA menu items are properly exposed as children for menu bars");
35
36 if (window.layoutController) {
37     testRunner.dumpAsText();
38 }
39
40 if (window.accessibilityController) {
41     document.getElementById("body").focus();
42     var webArea = accessibilityController.focusedElement;
43     var menuBar = webArea.childAtIndex(0);
44     dumpAccessibilityTree(menuBar, null, 0, false, true);
45 }
46 </script>
47 <script src="../resources/js-test-post.js"></script>
48 </body>
49 </html>