Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / aria-describedby-on-input.html
blobe2e59389676234bdc99cd6a5daacc7c8ad993c9a
1 <html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 <body>
7 <span id="message">This computer will self-destruct in</span>
8 <input id="time" type="text" value="10" aria-describedby="description"/>
9 <span id="unit"> minutes.</span>
10 <div id="description">Allows you to specify the number of minutes after which the computer will self-destruct.</div>
11 <div id="result"></div>
13 <script>
14 if (window.accessibilityController) {
15 var labeledItem = document.getElementById("time");
16 labeledItem.focus();
17 var result = document.getElementById("result");
18 result.innerText = "\nThe accessibility description is \"" + accessibilityController.focusedElement.deprecatedHelpText + "\"";
20 </script>
21 </body>
22 </html>