tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / platform / win / accessibility / list-role.html
1 <html>
2     <head>
3         <script src="../../../fast/js/resources/js-test-pre.js"></script>
4
5         <script>
6             if (window.layoutTestController)
7                 layoutTestController.dumpAsText();
8         </script>
9     </head>
10     <body id="body">
11         <p>
12             This test verifies that, on Windows, lists return the "list" role.
13             <br><br>
14             <a href="https://bugs.webkit.org/show_bug.cgi?id=32736">Bug 32736 - REGRESSION(r52233): MSAA: Accessibility role of lists is wrong</a>
15         </p>
16
17         <ul id="list" tabindex=1>
18             <li>list item</li>
19         </ul>
20
21         <p id="console"></p>
22
23         <script>
24             if (window.accessibilityController) {
25                 document.getElementById("list").focus();
26
27                 var list = accessibilityController.focusedElement;
28                 shouldBe('list.role', '"list"');
29             }
30         </script>
31     </body>
32 </html>