JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / aria-grid-with-strange-hierarchy.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="grid" role="grid" aria-readonly="true">
9 <div  role="presentation">
10   <table role="presentation">
11           <thead>
12             <tr>
13                  <th role="columnheader" aria-sort="ascending">&nbsp;</th>
14                  <th role="columnheader">Name</th>
15                  <th role="columnheader">Time</th>
16                  <th role="columnheader">Popularity</th>
17                  <th role="columnheader"> Price</th>
18             </tr>
19           </thead>
20      
21     <tbody>
22     <tr role="row">
23         <td role="gridcell">
24           <span class="index"><span>1</span></span>
25         </td>
26         <td role="gridcell"">
27           <span><span>Test</span></span>
28         </td>
29         <td role="gridcell"">
30           <span><span>Test</span></span>
31         </td>
32         <td role="gridcell"">
33           <span><span>Test</span></span>
34         </td>
35     </tr>   
36 </table></div></div>
37 <p id="description"></p>
38 <div id="console"></div>
39
40 <script>
41
42     description("This tests that an ARIA grid with a hierarchy that ignores render elements in between will still expose the correct elements.");
43
44     if (window.accessibilityController) {
45
46           // this text field should be required.
47           document.getElementById("grid").focus();
48           var grid = accessibilityController.focusedElement;
49
50           shouldBe("grid.childrenCount", "6");
51           shouldBe("grid.childAtIndex(0).role", "'AXRole: AXRow'");
52           shouldBe("grid.childAtIndex(1).role", "'AXRole: AXColumn'");
53
54           shouldBe("grid.childAtIndex(0).childrenCount", "4");
55           shouldBe("grid.childAtIndex(0).childAtIndex(0).role", "'AXRole: AXCell'");
56
57           shouldBe("grid.childAtIndex(0).childAtIndex(0).role", "'AXRole: AXCell'");
58           shouldBe("grid.childAtIndex(0).childAtIndex(0).childAtIndex(0).role", "'AXRole: AXStaticText'");
59           shouldBe("grid.childAtIndex(0).childAtIndex(0).childAtIndex(0).stringValue", "'AXValue: 1'");
60
61     }
62 </script>
63
64 <script src="../../../fast/js/resources/js-test-post.js"></script>
65 </body>
66 </html>