tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / platform / mac / accessibility / aria-toolbar.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
8 <div role="toolbar" aria-label="test toolbar">
9 <li>item one
10 <li>item tw
11 </div>
12
13 <p id="description"></p>
14 <div id="console"></div>
15
16 <script>
17
18     description("This tests that the aria-toolbar role correctly returns a toolbar.");
19
20     if (window.accessibilityController) {
21
22           var body = document.getElementById("body");
23           body.focus();
24           var obj = accessibilityController.focusedElement.childAtIndex(0);
25
26           var succeeded = obj.role == "AXRole: AXToolbar";
27           shouldBe("succeeded", "true");
28     }
29
30 </script>
31
32 <script src="../../../fast/js/resources/js-test-post.js"></script>
33 </body>
34 </html>