Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / button-title-uses-inner-img-alt.html
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 <script src="../resources/js-test-pre.js"></script>
5
6 <style>
7 button {
8   padding: 30px;
9 }
10 </style>
11
12 <button id="cake">Button with image of <img alt="cake" src="resources/cake.png" width="40px"></button>
13
14 <div id="console"></div>
15 <script>
16 description("This test makes sure that a generic focusable div can get accessibility focus and gets its accessible text from contents..");
17
18 if (window.testRunner && window.accessibilityController) {
19     window.testRunner.dumpAsText();
20
21     var button = document.getElementById('cake');
22     button.focus();
23     shouldBe("document.activeElement == button", "true");
24     window.axButton = accessibilityController.focusedElement;
25     shouldBe("axButton.title.indexOf('Button with image of cake') >= 0", "true");
26 }
27
28 </script>
29
30 <script src="../resources/js-test-post.js"></script>
31 </body>
32 </html>