tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / platform / mac / accessibility / aria-owns.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 tabindex=0 id="group" role="group" aria-owns="extra extra2">
9 <div>Item 1</div>
10 <div>Item 2</div>
11 <div>Item 3</div>
12 </div>
13
14 <div id="extra" role="button">BUTTON</div>
15 <div id="extra2" role="radio">RADIO BUTTON</div>
16
17 <p id="description"></p>
18 <div id="console"></div>
19
20 <script>
21
22     description("This tests that aria-owns correctly exposes AXOwns and correctly returns the right elements");
23
24     if (window.accessibilityController) {
25
26           var group = document.getElementById("group");
27           group.focus();
28           group = accessibilityController.focusedElement;
29           shouldBe("group.ariaOwnsElementAtIndex(0).role", "'AXRole: AXButton'");
30           shouldBe("group.ariaOwnsElementAtIndex(0).title", "'AXTitle: BUTTON'");
31           shouldBe("group.ariaOwnsElementAtIndex(1).role", "'AXRole: AXRadioButton'");
32           shouldBe("group.ariaOwnsElementAtIndex(1).title", "'AXTitle: RADIO BUTTON'");
33     }
34
35 </script>
36
37 <script src="../../../fast/js/resources/js-test-post.js"></script>
38 </body>
39 </html>