REGRESSION(r184899): Crash when focusing an input element styled with a web font
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / hr-element.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 <div id="content">
9 <hr id="hr1" onclick="test();">
10
11 <hr id="hr2">
12
13 <hr id="hr3" aria-label="RULER" tabindex="0">
14 </div>
15
16 <p id="description"></p>
17 <div id="console"></div>
18
19 <script>
20
21     description("This tests that the 'hr' element is accessible on the Mac.");
22
23     if (window.accessibilityController) {
24
25         for (var k = 1; k <= 3; k++) {
26            var hr = accessibilityController.accessibleElementById("hr" + k);
27            debug("hr" + k + " role: " + hr.role);
28            debug("hr" + k + " subrole: " + hr.subrole);
29            debug("hr" + k + " roleDescription: " + hr.roleDescription);
30            debug("hr" + k + " description: " + hr.description);
31            debug("hr" + k + " is value settable: " + hr.isAttributeSettable('AXValue'));
32            debug("hr" + k + " is enabled: " + hr.isEnabled + "\n");
33         }
34         document.getElementById("content").style.visibility = "none";
35     }
36
37 </script>
38
39 <script src="../../../resources/js-test-post.js"></script>
40 </body>
41 </html>