JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / aria-sort.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <div tabindex="0" id="button" role="button">button</div>
9
10 <div role="grid">
11 <div role="row">
12 <div role="columnheader" aria-sort="ascending" tabindex="0" id="column">column</div>
13 <div role="rowheader" aria-sort="descending" tabindex="0" id="row">row</div> 
14 </div>
15 </div>
16
17 <p id="description"></p>
18 <div id="console"></div>
19
20 <script>
21
22     description("This tests that aria-sort will be exposed correctly to the Mac accessibility API.");
23
24     if (window.accessibilityController) {
25
26         document.getElementById("button").focus();
27         shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXSortDirection')", "'AXUnknownSortDirection'");
28
29         document.getElementById("column").focus();
30         shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXSortDirection')", "'AXAscendingSortDirection'");
31
32         document.getElementById("row").focus();
33         shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXSortDirection')", "'AXDescendingSortDirection'");
34     }
35
36 </script>
37
38 <script src="../../../fast/js/resources/js-test-post.js"></script>
39 </body>
40 </html>