blob: a9874d923a64cabb323e2d96c14114a48fb61a7c [file] [log] [blame]
cfleizach@apple.com592c0902013-03-01 22:22:03 +00001<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<html>
3<head>
simon.fraser@apple.comaf2d2392015-08-04 22:52:42 +00004<script src="../../resources/js-test-pre.js"></script>
cfleizach@apple.com592c0902013-03-01 22:22:03 +00005<script>
6var successfullyParsed = false;
7if (window.testRunner)
8 testRunner.dumpAsText();
9</script>
10</head>
11<body>
12
cfleizach@apple.com86a18982015-06-16 20:58:39 +000013<a href="store.html" id="link">
cfleizach@apple.com592c0902013-03-01 22:22:03 +000014<img src="image.gif" width=100 height=100 alt="Hello World">
15</a>
16
17<p id="description"></p>
18<div id="console"></div>
19
20<script>
21
22 description("This test makes sure that a link with only an image will report the correct label.");
23
24 if (window.accessibilityController) {
25
cfleizach@apple.com86a18982015-06-16 20:58:39 +000026 var obj = accessibilityController.accessibleElementById("link");
27 shouldBeFalse("obj.isIgnored");
28 shouldBe("obj.description", "'AXLabel: Hello World'");
cfleizach@apple.com592c0902013-03-01 22:22:03 +000029 }
30
31 successfullyParsed = true;
32</script>
33
simon.fraser@apple.comaf2d2392015-08-04 22:52:42 +000034<script src="../../resources/js-test-post.js"></script>
cfleizach@apple.com592c0902013-03-01 22:22:03 +000035
36</body>
37</html>
38