Move platform/mac/accessibility tests to accessibility/mac.
[WebKit-https.git] / LayoutTests / accessibility / mac / aria-label-overrides-visible-text.html
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 <script src="../../resources/js-test-pre.js"></script>
5
6 <a tabindex="0" id="link1" href="#">test1</a>
7 <a tabindex="0" id="link2" href="#" aria-label="LINK">test1</a>
8
9 <div id="console"></div>
10 <script>
11 description("This tests ensures that if aria-label is used, the AXTitle will not expose its children on Mac.")
12
13 if (window.testRunner && window.accessibilityController) {
14    var link1 = accessibilityController.accessibleElementById("link1");
15    shouldBe("link1.description", "'AXDescription: '");
16    shouldBe("link1.title", "'AXTitle: test1'");
17
18    var link2 = accessibilityController.accessibleElementById("link2");
19    shouldBe("link2.description", "'AXDescription: LINK'");
20    shouldBe("link2.title", "'AXTitle: '");
21 }
22
23 </script>
24
25 <script src="../../resources/js-test-post.js"></script>
26 </body>
27 </html>