Git init
[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 <link rel="stylesheet" href="../../../fast/js/resources/js-test-style.css">
5 <script>
6 var successfullyParsed = false;
7 </script>
8 <script src="../../../fast/js/resources/js-test-pre.js"></script>
9 </head>
10 <body id="body">
11
12 <div tabindex=0 id="group" role="group" aria-owns="extra extra2">
13 <div>Item 1</div>
14 <div>Item 2</div>
15 <div>Item 3</div>
16 </div>
17
18 <div id="extra" role="button">BUTTON</div>
19 <div id="extra2" role="radio">RADIO BUTTON</div>
20
21 <p id="description"></p>
22 <div id="console"></div>
23
24 <script>
25
26     description("This tests that aria-owns correctly exposes AXOwns and correctly returns the right elements");
27
28     if (window.accessibilityController) {
29
30           var group = document.getElementById("group");
31           group.focus();
32           group = accessibilityController.focusedElement;
33           shouldBe("group.ariaOwnsElementAtIndex(0).role", "'AXRole: AXButton'");
34           shouldBe("group.ariaOwnsElementAtIndex(0).title", "'AXTitle: BUTTON'");
35           shouldBe("group.ariaOwnsElementAtIndex(1).role", "'AXRole: AXRadioButton'");
36           shouldBe("group.ariaOwnsElementAtIndex(1).title", "'AXTitle: RADIO BUTTON'");
37     }
38
39     successfullyParsed = true;
40 </script>
41
42 <script src="../../../fast/js/resources/js-test-post.js"></script>
43 </body>
44 </html>