Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / hidden-object-text-value-crash.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 <style>
7 span::before {
8     content: "Before";
9 }
10 </style>
11 <body id="body">
12
13 <button id="button" type="button" aria-hidden="true" aria-haspopup="true"><span></span></button>
14 <div id="button2" aria-labelledby="button">
15 <button>click</button>
16 </div>
17
18 <p>Description text</p>
19 </div>
20
21 <p id="description"></p>
22 <div id="console"></div>
23
24 <script>
25
26     description("This tests that it won't cause a crash when computing the text value of an AX object that is hidden and has no node.");
27
28     if (window.accessibilityController) {
29
30         var button = accessibilityController.accessibleElementById("button2");
31         // Do not crash
32         button.description;
33     }
34
35 </script>
36
37 <script src="../resources/js-test-post.js"></script>
38 </body>
39 </html>