b3d9a52e363f088e7d753dc846f9fe5fe6fd0fa0
[WebKit-https.git] / LayoutTests / accessibility / input-image-alt.html
1 <html>
2 <html>
3 <head>
4 <script>
5 var successfullyParsed = false;
6 </script>
7 <script src="../fast/js/resources/js-test-pre.js"></script>
8 </head>
9 <body id="body">
10
11     <input type="image" alt="Submit" src="resources/cake.png" width=100 height=100 id="image1">
12     
13     <p id="description"></p>
14     <div id="console"></div>
15      
16     <script>
17         if (window.accessibilityController) {
18             description("This test makes sure that an input image returns its alt tag as the description");
19
20             var image1 = document.getElementById("image1").focus();
21             var img = accessibilityController.focusedElement;
22
23             shouldBe("img.description", "'AXDescription: Submit'");
24         }
25         successfullyParsed = true;
26     </script>
27
28 <script src="../fast/js/resources/js-test-post.js"></script>
29
30 </body> 
31 </html>