Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / input-image-alt.html
blob28a2031b14fd2db6d462271783a25026fb7a7a03
1 <html>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body id="body">
8 <input type="image" alt="Submit" src="resources/cake.png" width=100 height=100 id="image1">
10 <p id="description"></p>
11 <div id="console"></div>
13 <script>
14 if (window.accessibilityController) {
15 description("This test makes sure that an input image returns its alt tag as the description");
17 var image1 = document.getElementById("image1").focus();
18 var img = accessibilityController.focusedElement;
20 shouldBe("img.deprecatedDescription", "'AXDescription: Submit'");
22 </script>
25 </body>
26 </html>