1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html id="html" aria-label="Test Webpage">
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
10 <p id="description"></p>
11 <div id="console"></div>
15 description("This tests that aria-label will become the accessible name of the AXWebArea when used on the HTML tag.");
17 if (window.accessibilityController) {
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'");
24 document.getElementById("html").setAttribute("aria-label", "New Title");
25 shouldBe("root.description", "'AXDescription: New Title'");
30 <script src="../../../fast/js/resources/js-test-post.js"></script>