REGRESSION(r184899): Crash when focusing an input element styled with a web font
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / aria-pressed-button-attributes.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../../resources/js-test-pre.js"></script>
6 </head>
7 <body id="body">
8
9 <div id="button1" role="button" aria-pressed="true">Foo</div>
10
11 <div id="button2" role="button" aria-pressed="false">Bar</div>
12
13 <p id="description"></p>
14 <div id="console"></div>
15
16 <script>
17
18     description("This tests role=button with aria-pressed will create an AXCheckbox:AXToggle on Mac with the right AXValue");
19
20     if (window.accessibilityController) {
21
22         var button1 = accessibilityController.accessibleElementById("button1");
23         debug("Button1: " + button1.role);
24         debug("Button1: " + button1.subrole);
25         debug("Button1: " + button1.stringValue);
26
27         var button2 = accessibilityController.accessibleElementById("button2");
28         debug("Button2: " + button2.role);
29         debug("Button2: " + button2.subrole);
30         debug("Button2: " + button2.stringValue);
31     }
32
33 </script>
34
35 <script src="../../../resources/js-test-post.js"></script>
36 </body>
37 </html>