Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / set-selected-editable.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../resources/js-test-pre.js"></script>
6 </head>
7 <body id="body">
8
9 <div id="content">
10
11   <div id="test0" role="table" selected-expected-value="false">
12     <div id="test1" role="row" selected-expected-value="true">
13       <div id="test2" role="columnheader" selected-expected-value="false">X</div>
14       <div id="test3" role="columnheader" selected-expected-value="false">X</div>
15     </div>
16     <div id="test4" role="row" selected-expected-value="true">
17       <div id="test5" role="rowheader" selected-expected-value="true">X</div>
18       <div id="test6" role="cell" selected-expected-value="true">X</div>
19     </div>
20   </div>
21
22   <div id="test7" role="grid" selected-expected-value="false">
23     <div id="test8" role="row" selected-expected-value="true">
24       <div id="test9" role="columnheader" selected-expected-value="false">X</div>
25       <div role="columnheader">X</div>
26     </div>
27     <div id="test10" role="row" selected-expected-value="true">
28       <div id="test11" role="rowheader" selected-expected-value="true">X</div>
29       <div id="test12" role="gridcell" selected-expected-value="true">X</div>
30     </div>
31   </div>
32
33   <div id="test13" role="treegrid" selected-expected-value="true">
34     <div id="test14" role="row" selected-expected-value="true">
35       <div id="test15" role="columnheader" selected-expected-value="false">X</div>
36       <div id="test16" role="gridcell" selected-expected-value="true">X</div>
37       <div id="test17" role="rowheader" selected-expected-value="true">X</div>
38     </div>
39   </div>
40
41   <ul id="test18" role="tree" selected-expected-value="true">
42       <li id="test19" role="treeitem" selected-expected-value="true">tree item</li>
43   </ul>
44
45   <ul id="test20" role="tablist" selected-expected-value="true">
46   <li id="test21" role="tab" tabindex="-1" selected-expected-value="true">Crust</li>
47   </ul>
48
49   <div id="test22" role="menuitemradio" aria-checked="true" selected-expected-value="true">Item one</div>
50   <div id="test23" role="menuitemcheckbox" aria-checked="false" selected-expected-value="true">Item four</div>
51   <div id="test24" role="menuitem" selected-expected-value="true">Item five</div>
52
53   <input id="test25" type="radio" selected-expected-value="false">
54   <input id="test26" type="checkbox" selected-expected-value="false"/>
55   <input id="test27" type="text" role="combobox" selected-expected-value="false">
56
57 </div>
58 <p id="description"></p>
59 <div id="console"></div>
60 <script>
61     description("This tests that the accessibility Selected attribute can be settable only on certain elements.");
62     if (window.accessibilityController) {
63           for (var i = 0; i <= 27; i++) {
64               var axElement = accessibilityController.accessibleElementById("test" + i);
65               shouldBe("axElement.isAttributeSettable('AXSelected')", document.getElementById("test" + i).getAttribute("selected-expected-value"));
66           }
67           
68           document.getElementById("content").style.visibility = "hidden";
69     }
70
71 </script>
72
73 <script src="../../resources/js-test-post.js"></script>
74 </body>
75 </html>