tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / platform / mac / accessibility / aria-radiobutton-text.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="radiogroup">
9    <div role="radio" tabindex="0" aria-checked="true">One</div>
10    <div role="radio" tabindex="0">Two</div>
11    <div role="radio" tabindex="0" id="foo" aria-labelledby="foo">Three</div>
12 </div>
13
14 <p id="description"></p>
15 <div id="console"></div>
16
17 <script>
18
19     description("This tests that aria radio buttons use the text inside of them as the title.");
20
21     if (window.accessibilityController) {
22
23           // this text field should be required.
24           document.getElementById("body").focus();
25           var obj = accessibilityController.focusedElement.childAtIndex(0);
26
27           var succeeded = obj.childAtIndex(0).title == "AXTitle: One";
28           shouldBe("succeeded", "true");
29
30           var succeeded = obj.childAtIndex(1).title == "AXTitle: Two";
31           shouldBe("succeeded", "true");
32
33           var succeeded = obj.childAtIndex(2).title == "AXTitle: Three";
34           shouldBe("succeeded", "true");
35     }
36
37 </script>
38
39 <script src="../../../fast/js/resources/js-test-post.js"></script>
40 </body>
41 </html>