summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/accessibility/html-html-element-is-ignored.html
blob: e044f8ebe7366af5426eb51129a698d25608506c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html aria-label="Test">
<head>
<script src="../fast/js/resources/js-test-pre.js"></script>
</head>
<body id="body">

    <p role="button" id="description"></p>
    <div id="console"></div>
     
    <script>
        if (window.accessibilityController) {
            description("This test checks that the <html> element is not the AX tree (ever), even when it has an aria attribute. ");

            var startElement = accessibilityController.accessibleElementById("description");
            debug("The start element should be a button.");
            shouldBe("startElement.role", "'AXRole: AXButton'");

            debug("\nThe parent should be the web area.");
            shouldBe("startElement.parentElement().role", "'AXRole: AXWebArea'");
        } else {
            debug("This test requires accessibilityController.")
        }
    </script>

<script src="../fast/js/resources/js-test-post.js"></script>

</body> 
</html>