57c01a0653d2dcd8eaabcd30724df798cd7e7166
[WebKit-https.git] / LayoutTests / platform / ios-simulator / accessibility / non-contiguous-link.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <head>
5 <script src="../../../resources/js-test-pre.js"></script>
6 <script>
7     if (window.testRunner)
8         testRunner.dumpAsText();
9 </script>
10 </head>
11 <body>
12
13 <a id="link" href="#">This is a link that <b>would</b> normally appear <b>as multiple</b> elements</a>.
14
15 <p id="description"></p>
16 <div id="console"></div>
17
18 <script>
19
20     description("This test makes sure that only one element is returned for the link object, instead of many elements that are all links.");
21
22     if (window.accessibilityController) {
23
24         var obj = accessibilityController.accessibleElementById("link");
25         shouldBe("obj.description", "'AXLabel: This is a link that would normally appear as multiple elements'");
26         shouldBeFalse("obj.isIgnored");
27     }
28
29     successfullyParsed = true;
30 </script>
31 <script src="../../../resources/js-test-post.js"></script>
32
33
34 </body>
35 </html>
36