4e96297ce9ddd9ad58a8d18cd1e3e35669fe3a31
[WebKit-https.git] / LayoutTests / platform / ios-simulator / accessibility / accessibility-hint.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../resources/js-test-pre.js"></script>
5 <script>
6 var successfullyParsed = false;
7 </script>
8 </head>
9 <body id="body">
10
11 <a tabindex=0 id="link" href="#here" title="This is a hint">link label</a>
12
13 <p id="description"></p>
14 <div id="console"></div>
15
16 <script>
17
18     description("This makes sure that the title attribute is used as accessibilityHint");
19
20     if (window.accessibilityController) {
21
22         document.getElementById("link").focus();
23         var link = accessibilityController.focusedElement;
24         shouldBe("link.helpText", "'AXHint: This is a hint'");
25     }
26
27     successfullyParsed = true;
28 </script>
29
30 <script src="../../../resources/js-test-post.js"></script>
31 </body>
32 </html>
33