| <!-- the AXGroup that comes from the <td> should have the <th> as its title ui element |
| In the 2nd case, it should not have a title ui element --> |
| <table width="90" border="0"> |
| <th>Header for button</th> |
| <td><input type="button" value="button"></td> |
| <table width="90" border="0"> |
| <td>Header for button</td> |
| <td><input type="button" value="button"></td> |
| if (window.accessibilityController) { |
| var result = document.getElementById("result"); |
| var body = document.getElementById("body"); |
| var group = accessibilityController.focusedElement.childAtIndex(1); |
| var group2 = accessibilityController.focusedElement.childAtIndex(3); |
| if (group.titleUIElement().allAttributes() != "" && (group2.titleUIElement() == null || group2.titleUIElement().allAttributes() == "")) |
| result.innerText += "Pass"; |
| result.innerText += "Fail"; |