[Web GPU] GPURenderPassEncoder updates: setBlendColor, setViewport, setScissorRect
[WebKit-https.git] / LayoutTests / accessibility / aria-sort.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <title>aria-sort</title>
6 </head>
7 <body>
8
9 <div role="grid">
10 <div role="row">
11 <span role="gridcell"></span>
12 <!-- Ascending aria-sort direction. -->
13 <span aria-sort="ascending" id="col1" role="columnheader">column</span>
14 <!-- Descending aria-sort direction. -->
15 <span aria-sort="descending" id="col2" role="columnheader">column</span>
16 <!-- Other aria-sort direction. -->
17 <span aria-sort="other" id="col3" role="columnheader">column</span>
18 </div>
19 <div role="row">
20 <!-- No aria-sort direction. -->
21 <span id="row1" role="rowheader">row</span>
22 <span role="gridcell"></span>
23 <span role="gridcell"></span>
24 <span role="gridcell"></span>
25 </div>
26 </div>
27
28 <p id="description"></p>
29 <div id="console"></div>
30
31 <script>
32     description("This tests that aria-sort is exposed correctly to the Mac accessibility API.");
33     
34     if (window.accessibilityController) {
35         var col1 = accessibilityController.accessibleElementById("col1");
36         shouldBe("col1.isAttributeSupported('AXSortDirection')", "true");
37         shouldBe("col1.stringAttributeValue('AXSortDirection')", "'AXAscendingSortDirection'");
38         
39         var col2 = accessibilityController.accessibleElementById("col2");
40         shouldBe("col2.isAttributeSupported('AXSortDirection')", "true");
41         shouldBe("col2.stringAttributeValue('AXSortDirection')", "'AXDescendingSortDirection'");
42         
43         var col3 = accessibilityController.accessibleElementById("col3");
44         shouldBe("col3.isAttributeSupported('AXSortDirection')", "true");
45         shouldBe("col3.stringAttributeValue('AXSortDirection')", "'AXUnknownSortDirection'");
46         
47         var row1 = accessibilityController.accessibleElementById("row1");
48         shouldBe("row1.isAttributeSupported('AXSortDirection')", "false");
49     }
50 </script>
51
52 <script src="../resources/js-test-post.js"></script>
53 </body>
54 </html>