tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / platform / mac / accessibility / html-with-aria-label.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html id="html" aria-label="Test Webpage">
3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 Nothing to see.
9
10 <p id="description"></p>
11 <div id="console"></div>
12
13 <script>
14
15     description("This tests that aria-label will become the accessible name of the AXWebArea when used on the HTML tag.");
16
17     if (window.accessibilityController) {
18
19         // Test the values in a multi-select list box.
20         var root = accessibilityController.rootElement.childAtIndex(0);
21         shouldBe("root.role", "'AXRole: AXWebArea'");
22         shouldBe("root.description", "'AXDescription: Test Webpage'");
23
24         document.getElementById("html").setAttribute("aria-label", "New Title");
25         shouldBe("root.description", "'AXDescription: New Title'");
26     }
27
28 </script>
29
30 <script src="../../../fast/js/resources/js-test-post.js"></script>
31 </body>
32 </html>