tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / platform / gtk / accessibility / title-and-alt.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7 <img src="image.jpg" alt="Image alt attr" title="Image title attr">
8 <form>
9 <a href="" title="Link title attr">Functional label</a>:<input title="Entry title attr" type="text" /><input value="Clear" type="reset" /><input value="Submit" title="Submit button title attr" type="submit" />
10 </form>
11 <p id="description"></p>
12 <div id="console"></div>
13 <script>
14     description("This tests the exposure of alt and title information.");
15     if (window.accessibilityController) {
16         layoutTestController.dumpAsText();
17         document.getElementById("body").focus();
18         var webArea = accessibilityController.focusedElement;
19
20         var image = webArea.childAtIndex(0);
21         shouldBe("image.title", "'AXTitle: Image alt attr'");
22         shouldBe("image.description", "'AXDescription: Image title attr'");
23
24         var link = webArea.childAtIndex(1);
25         shouldBe("link.title", "'AXTitle: '");
26         shouldBe("link.description", "'AXDescription: Link title attr'");
27
28         var entry = webArea.childAtIndex(2);
29         shouldBe("entry.title", "'AXTitle: '");
30         shouldBe("entry.description", "'AXDescription: Entry title attr'");
31
32         var button = webArea.childAtIndex(4);
33         shouldBe("button.title", "'AXTitle: Submit'");
34         shouldBe("button.description", "'AXDescription: Submit button title attr'");
35         }
36 </script>
37 <script src="../../../fast/js/resources/js-test-post.js"></script>
38 </body>
39 </html>