JS Test Harness: Remove more link tags
[WebKit-https.git] / LayoutTests / accessibility / img-aria-button-alt-tag.html
1 <html>
2 <head>
3 <script>
4 var successfullyParsed = false;
5 </script>
6 <script src="../fast/js/resources/js-test-pre.js"></script>
7 </head>
8 <script>
9     if (window.layoutTestController)
10         layoutTestController.dumpAsText();
11 </script>
12 <body id="body">
13  
14     <img id='image' src="resources/cake.png" role="button" alt="alternate" title="title">
15     
16     <p id="description"></p>
17     <div id="console"></div>
18      
19     <script>
20         description("This test makes sure that a img acting as an aria button still returns its alt tag as the description");
21  
22         if (window.accessibilityController) {
23             var result = document.getElementById("result");
24
25             var body = document.getElementById("body").focus();
26             var imgUIElement = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(0);
27             shouldBe("imgUIElement.description", "'AXDescription: alternate'");
28         }
29         successfullyParsed = true;
30     </script>
31     
32 <script src="../fast/js/resources/js-test-post.js"></script>
33 </body>
34 </html>