Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-labelledby-on-input.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     <span id="message">This computer will self-destruct in</span>
10     <input id="time" type="text" value="10" aria-labelledby="message time unit"/>
11     <span id="unit"> minutes.</span>
12 </div>
13 <div id="console"></div>
14 <script>
15     description("This verifies the accessible name of an input with multiple aria-labelledby elements.");
16     if (window.accessibilityController) {
17         var labeledItem = document.getElementById("time").focus();
18         var axInput = accessibilityController.focusedElement;
19         shouldBeEqualToString("platformValueForW3CName(axInput)", "This computer will self-destruct in 10 minutes.");
20
21         document.getElementById("content").style.visibility = "hidden";
22     }
23 </script>
24 <script src="../resources/js-test-post.js"></script>
25 </body>
26 </html>