REGRESSION(r184899): Crash when focusing an input element styled with a web font
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / file-upload-button-subrole.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 <input type="file" id="fileupload">
9
10 <p id="description"></p>
11 <div id="console"></div>
12
13 <script>
14
15     description("This tests that a file upload button will have a specific subrole and a title that matches the files selected.");
16
17     if (window.accessibilityController) {
18
19           var uploadButton = accessibilityController.accessibleElementById("fileupload");
20           shouldBe("uploadButton.subrole", "'AXSubrole: AXFileUploadButton'");
21           shouldBe("uploadButton.roleDescription", "'AXRoleDescription: file upload button'");
22           shouldBe("uploadButton.title", "'AXTitle: no file selected'");
23     }
24
25 </script>
26
27 <script src="../../../resources/js-test-post.js"></script>
28 </body>
29 </html>