| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <script> | |
| 3 if (window.testRunner) | |
| 4 testRunner.dumpAsText(); | |
| 5 </script> | |
| 6 <body id="body"> | |
| 7 | |
| 8 <!-- the AXGroup that comes from the <td> should have the <th> as its title
ui element | |
| 9 In the 2nd case, it should not have a title ui element --> | |
| 10 | |
| 11 <table width="90" border="0"> | |
| 12 <tr> | |
| 13 <th>Header for button</th> | |
| 14 <td><input type="button" value="button"></td> | |
| 15 </tr> | |
| 16 </table> | |
| 17 | |
| 18 <table width="90" border="0"> | |
| 19 <tr> | |
| 20 <td>Header for button</td> | |
| 21 <td><input type="button" value="button"></td> | |
| 22 </tr> | |
| 23 </table> | |
| 24 | |
| 25 <div id="result"></div> | |
| 26 | |
| 27 <script> | |
| 28 if (window.accessibilityController) { | |
| 29 var result = document.getElementById("result"); | |
| 30 | |
| 31 var body = document.getElementById("body"); | |
| 32 body.focus(); | |
| 33 var group = accessibilityController.focusedElement.childAtIndex(1); | |
| 34 var group2 = accessibilityController.focusedElement.childAtIndex(3); | |
| 35 if (group.deprecatedTitleUIElement().allAttributes() != "" && (group
2.deprecatedTitleUIElement() == null || group2.deprecatedTitleUIElement().allAtt
ributes() == "")) | |
| 36 result.innerText += "Pass"; | |
| 37 else | |
| 38 result.innerText += "Fail"; | |
| 39 } | |
| 40 </script> | |
| 41 </body> | |
| 42 </html> | |
| OLD | NEW |