Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-fallback-roles.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <span tabindex="0" id="test" role="unknownrole switch checkbox" aria-checked="true">test</span>
9
10 <p id="description"></p>
11 <div id="console"></div>
12
13 <script>
14
15     description("This tests that aria fallback roles work correctly.");
16     if (window.accessibilityController) {
17
18         if (window.accessibilityController) {
19
20             var test = document.getElementById("test");
21             test.focus();
22             test = accessibilityController.focusedElement;
23
24             debug("Role should be: " + test.role);
25         }
26     }
27 </script>
28
29 <script src="../../../resources/js-test-post.js"></script>
30 </body>
31 </html>