Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-labelledby-overrides-aria-labeledby.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script src="../resources/accessibility-helper.js"></script>
6 <title>aria-labelledby Overrides aria-labeledby</title>
7 </head>
8 <body>
9
10 <div id="test">
11 <a aria-labeledby="x1 x2" aria-labelledby="y1 y2" href="#" id="link">X</a>
12 <!-- Incorrectly spelled aria-labelledby attribute labels. -->
13 <span id="x1">I</span>
14 <span id="x2">J</span>
15 <!-- Correctly spelled aria-labelledby attribute labels. -->
16 <span id="y1">Y</span>
17 <span id="y2">Z</span>
18 </div>
19
20 <p id="description"></p>
21 <div id="console"></div>
22
23 <script>
24     description("This tests that aria-labelledby overrides aria-labeledby correctly.");
25     
26     if (window.accessibilityController) {
27         var axLink = accessibilityController.accessibleElementById("link");
28         shouldBeEqualToString("platformValueForW3CName(axLink)", "Y Z");
29
30         // Hide superfluous text.
31         document.getElementById("test").style.display = "none";
32     }
33 </script>
34
35 <script src="../resources/js-test-post.js"></script>
36 </body>
37 </html>