356e75ff67fb2ed7c7107b74b11e85e337f16b5f
[WebKit-https.git] / LayoutTests / platform / ios-simulator / accessibility / link-with-images-text.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 if (window.testRunner)
8    testRunner.dumpAsText();
9 </script>
10 </head>
11 <body>
12
13 <a href="store.html" id="link">
14 <span>
15 <img src="image.gif" width=100 height=100 alt="">
16 <strong>iPhone</strong>From $99</span>                                                     
17 </a>
18
19 <p id="description"></p>
20 <div id="console"></div>
21
22 <script>
23
24     description("This test makes sure that a link with images and text appears as a link.");
25
26     if (window.accessibilityController) {
27
28         var obj = accessibilityController.accessibleElementById("link");
29         shouldBe("obj.isIgnored", "false");
30         shouldBe("obj.description", "'AXLabel: iPhone From $99'");
31     }
32
33     successfullyParsed = true;
34 </script>
35
36 <script src="../../../resources/js-test-post.js"></script>
37
38 </body>
39 </html>
40