blob: 3f06188ef30f9f3bddfb664c5791933616a2a1d7 [file] [log] [blame]
cfleizach@apple.come1a8ccb2013-12-09 14:17:27 +00001<!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<img alt="TEST1" src="resources/cake.png" role="text" id="text">
9
10<img alt="TEST2" src="resources/cake.png" role="group" id="group">
11
12<img alt="TEST3" src="resources/cake.png" role="button" id="button">
13
14<p id="description"></p>
15<div id="console"></div>
16
17<script>
18
19 description("This tests that setting a role on an img still allows the alt attribute to be used for the description..");
20
21 if (window.accessibilityController) {
22
23 var text = accessibilityController.accessibleElementById("text");
24 shouldBe("text.stringValue", "'AXValue: TEST1'");
25
26 var group = accessibilityController.accessibleElementById("group");
27 shouldBe("group.description", "'AXDescription: TEST2'");
28
29 var button = accessibilityController.accessibleElementById("button");
30 shouldBe("button.description", "'AXDescription: TEST3'");
31 }
32
33</script>
34
35<script src="../resources/js-test-post.js"></script>
36</body>
37</html>