Update device orientation & motion permission native SPI as per latest proposal
[WebKit-https.git] / LayoutTests / accessibility / alt-tag-on-image-with-nonimage-role.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script src="../resources/accessibility-helper.js"></script>
6 </head>
7 <body id="body">
8
9 <img alt="TEST1" src="resources/cake.png" role="text" id="text">
10
11 <img alt="TEST2" src="resources/cake.png" role="group" id="group">
12
13 <img alt="TEST3" src="resources/cake.png" role="button" id="button">
14
15 <p id="description"></p>
16 <div id="console"></div>
17
18 <script>
19
20     description("This tests the alternative text calculation when setting a role on an img with an alt attribute.");
21
22     if (window.accessibilityController) {
23
24         var text = accessibilityController.accessibleElementById("text");
25         shouldBe("text.stringValue", "'AXValue: TEST1'");
26
27         var group = accessibilityController.accessibleElementById("group");
28         var button = accessibilityController.accessibleElementById("button");
29
30         shouldBeEqualToString("platformValueForW3CName(group)", "TEST2");
31         shouldBeEqualToString("platformValueForW3CName(button)", "TEST3");
32     }
33
34 </script>
35
36 <script src="../resources/js-test-post.js"></script>
37 </body>
38 </html>