Update device orientation & motion permission native SPI as per latest proposal
[WebKit-https.git] / LayoutTests / accessibility / treeitem-child-exposed.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <div role="tree" id="tree">
9    <div role="treeitem" id="item1">
10       <input id="input1" /input>
11    </div>
12    <input id="input2" /input>
13    <div role="treeitem" id="item2">
14       <row>
15          <input id="input3" /input>
16       </row>
17    </div>
18 </div>
19
20
21 <p id="description"></p>
22 <div id="console"></div>
23
24 <script>
25
26     description("This tests if a treeitem contains an element other than static text, it should be exposed");
27
28     if (window.accessibilityController) {
29         // tree should only have 3 child, since malformed tree should also be accessible.
30         var tree = accessibilityController.accessibleElementById("tree");
31         shouldBe("tree.childrenCount", "3");
32         
33         // input filed in treeitem1 should be exposed
34         var inputField = accessibilityController.accessibleElementById("input1");
35         shouldBeTrue("inputField.isValid");
36         
37         // treeitem's children should be exposed, eg. the input field in treeitem2
38         var inputField3 = accessibilityController.accessibleElementById("input3");
39         shouldBeTrue("inputField3.isValid");
40     }
41
42 </script>
43
44 <script src="../resources/js-test-post.js"></script>
45 </body>
46 </html>
47