cfleizach@apple.com | 592c090 | 2013-03-01 22:22:03 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 | <html> |
| 3 | <head> |
simon.fraser@apple.com | af2d239 | 2015-08-04 22:52:42 +0000 | [diff] [blame] | 4 | <script src="../../resources/js-test-pre.js"></script> |
cfleizach@apple.com | 592c090 | 2013-03-01 22:22:03 +0000 | [diff] [blame] | 5 | <script> |
| 6 | var successfullyParsed = false; |
| 7 | if (window.testRunner) |
| 8 | testRunner.dumpAsText(); |
| 9 | </script> |
| 10 | </head> |
| 11 | <body> |
| 12 | |
cfleizach@apple.com | 86a1898 | 2015-06-16 20:58:39 +0000 | [diff] [blame] | 13 | <a href="store.html" id="link"> |
cfleizach@apple.com | 592c090 | 2013-03-01 22:22:03 +0000 | [diff] [blame] | 14 | <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.com | 86a1898 | 2015-06-16 20:58:39 +0000 | [diff] [blame] | 26 | var obj = accessibilityController.accessibleElementById("link"); |
| 27 | shouldBeFalse("obj.isIgnored"); |
| 28 | shouldBe("obj.description", "'AXLabel: Hello World'"); |
cfleizach@apple.com | 592c090 | 2013-03-01 22:22:03 +0000 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | successfullyParsed = true; |
| 32 | </script> |
| 33 | |
simon.fraser@apple.com | af2d239 | 2015-08-04 22:52:42 +0000 | [diff] [blame] | 34 | <script src="../../resources/js-test-post.js"></script> |
cfleizach@apple.com | 592c090 | 2013-03-01 22:22:03 +0000 | [diff] [blame] | 35 | |
| 36 | </body> |
| 37 | </html> |
| 38 | |