Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / link-inside-button-accessible-text.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <div id="content">
9
10 <div role="button" id="button1">
11     <a href="#">foo1</a>
12 </div>
13
14 <button id="button2">
15     <a href="#">foo2</a>
16 </button>
17
18 </div>
19
20 <div id="console"></div>
21
22 <script>
23
24     description("This tests that when a link is inside a button, its visible text is still available for the button.");
25
26     if (window.accessibilityController) {
27
28           var button1 = accessibilityController.accessibleElementById("button1");
29           shouldBe("button1.title", "'AXTitle: foo1'");
30
31           var button2 = accessibilityController.accessibleElementById("button2");
32           shouldBe("button2.title", "'AXTitle: foo2'");
33
34           document.getElementById("content").style.visibility = 'hidden';
35     }
36
37 </script>
38
39 <script src="../resources/js-test-post.js"></script>
40 </body>
41 </html>