summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/accessibility/plugin.html
blob: 2b35cf1e1a670d2f5988c5df247a2699911d9e76 (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
<html>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
</script>
<body id="body">
    <!-- This test ensures that a plugin that is not accessible, will not appear in the AX hierachy-->
    <object width=100 height=100>
       <param name="movie">
       <embed src="resources/test.swf" type="application/x-shockwave-flash">
    </object>    
    
    <div id="result"></div>

     
    <script>
        if (window.accessibilityController) {
            var result = document.getElementById("result");

            var body = document.getElementById("body");
            body.focus();
            result.innerText += accessibilityController.focusedElement.attributesOfChildren() + "\n\n"; 
        }
    </script>
</body>
</html>