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