Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / text-role-with-aria-hidden-inside.html
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 <script src="../resources/js-test-pre.js"></script>
5
6 <div id="content">
7
8 <div role="text" id="text">
9         <div>Song Title</div>
10         <div>Artist Name</div>
11         <span role="text" aria-label="(4 stars, 1,234 ratings)">★★★★☆</span>
12         <span aria-hidden="true">(1,234)</span>
13 </div>
14 </div>
15
16 <div id="console"></div>
17 <script>
18
19 description("This tests that when calculating the text under an element, aria-hidden is observed.")
20
21 if (window.testRunner && window.accessibilityController) {
22     var text = accessibilityController.accessibleElementById("text");
23     shouldBe("text.stringValue", "'AXValue: Song Title Artist Name (4 stars, 1,234 ratings)'");
24     document.getElementById("content").style.visibility = 'hidden';    
25 }
26 </script>
27 <script src="../resources/js-test-post.js"></script>
28 </body>
29 </html>