Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-labelledby-stay-within.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>
8 <div id="content">
9     <p>Some <a href="#">focusable content</a> before the application widgets.</p>
10     <ul role="toolbar">
11     <li><a role="button" href="#" id="get"><span>Get New Mail</span></a></li>
12     <li><a role="button" href="#" id="com"><span>Compose New Message</span></a></li>
13     <li><a role="button" href="#" id="rep" aria-labelledby="rep item5"><span>Reply</span></a></li>
14     <li><a role="button" href="#" id="all" aria-labelledby="all item5"><span>Reply All</span></a></li>
15     <li><a role="button" href="#" id="for" aria-labelledby="for item5"><span>Forward</span></a></li>
16     <li><a role="button" href="#" id="del" aria-labelledby="del item5"><span>Delete</span></a></li>
17 </ul>
18
19 <ul role="listbox">
20   <li id="item4" role="listitem" tabindex="-1" class="">Item Four</li>
21   <li id="item5" role="listitem" tabindex="-1" class="">Item Five</li>
22   <li id="item6" role="listitem" tabindex="0" class="selected" aria-selected="true">Item Six</li>
23   <li id="item7" role="listitem" tabindex="-1">Item Seven</li>
24 </ul>
25
26 </div>
27 <p id="description"></p>
28 <div id="console"></div>
29 <script>
30         description("This tests that aria-labelledby does not append all sibling to an ARIA name");
31
32         if (window.accessibilityController) {
33             var labeledItem = document.getElementById("rep").focus();
34             var axButton = accessibilityController.focusedElement;
35             shouldBeEqualToString("platformValueForW3CName(axButton)", "Reply Item Five");
36
37             document.getElementById("content").style.visibility = "hidden";
38         }
39 </script>
40 <script src="../resources/js-test-post.js"></script>
41 </body>
42 </html>