0a883f21e59afe3282cd1354db96b9eaa2451dc2
[WebKit-https.git] / LayoutTests / accessibility / attachment-element.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 <script>
7     if (window.internals)
8         window.internals.settings.setAttachmentElementEnabled(true)
9 </script>
10 </head>
11 <body id="body">
12
13 <attachment id="attachment" title="title" subtitle="subtitle" action="action" progress="0.5"></attachment>
14
15 <p id="description"></p>
16 <div id="console"></div>
17
18 <script>
19
20     description("This tests that attachment elements are accessible.");
21
22     if (window.accessibilityController) {
23         var content = accessibilityController.accessibleElementById("attachment");
24         debug("Attachment description: " + content.description);
25
26         debug("Attachment value: " + content.stringValue);
27
28         if (accessibilityController.platformName == "mac") {
29             debug("Attachment role: " + content.roleDescription);
30         }
31     }
32
33 </script>
34
35 <script src="../resources/js-test-post.js"></script>
36 </body>
37 </html>