Update device orientation & motion permission native SPI as per latest proposal
[WebKit-https.git] / LayoutTests / accessibility / table-fallback-roles-expose-element-attributes.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="garbage grid" id="grid1">
9 <div role="row"><div role="gridcell">item1</div></div>
10 </div>
11
12 <div role="   garbage      grid     " id="grid2">
13 <div role="row"><div role="gridcell">item1</div></div>
14 </div>
15
16 <div role="     grid     " id="grid3">
17 <div role="row"><div role="gridcell">item1</div></div>
18 </div>
19
20 <p id="description"></p>
21 <div id="console"></div>
22
23 <script>
24
25     description("This tests if an element is using fallback role tokens, it will still become the 'correct' element which will expose the correct attributes.");
26
27     if (window.accessibilityController) {
28
29         for (var k = 1; k < 4; k++) {
30            var grid = accessibilityController.accessibleElementById("grid" + k);
31            var cell = grid.cellForColumnAndRow(0, 0);
32            debug("cell: " + cell.role + ", " + cell.stringValue + "\n");
33            if (accessibilityController.platformName != "atk") {
34               var cellChild = cell.childAtIndex(0);
35               debug("cellChild: " + cellChild.role + ", " + cellChild.stringValue + "\n");
36           }
37         }
38     }
39 </script>
40
41 <script src="../resources/js-test-post.js"></script>
42 </body>
43 </html>