| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test.js"></script> |
| <script src="../../resources/accessibility-helper.js"></script> |
| <fieldset id="fieldset">Text</fieldset> |
| <fieldset id="fieldset-with-legend">Text</fieldset> |
| <img src="../resources/cake.png" alt="Cake"> |
| <figcaption>Cake</figcaption> |
| <figure id="figure-with-explicit-group-role" role="group"> |
| <img src="../resources/cake.png" alt="Cake"> |
| <figcaption>Cake</figcaption> |
| description("This test passes if WebKit doesn't crash trying to compute whether the elements on this page should be ignored.") |
| if (window.accessibilityController) { |
| shouldBe("accessibilityController.accessibleElementById('fieldset').role", "'AXRole: AXGroup'"); |
| shouldBe("accessibilityController.accessibleElementById('fieldset-with-legend').role", "'AXRole: AXGroup'"); |
| shouldBe("accessibilityController.accessibleElementById('fieldset-with-legend').role", "'AXRole: AXGroup'"); |
| shouldBe("accessibilityController.accessibleElementById('figure').role", "'AXRole: AXGroup'"); |
| shouldBe("accessibilityController.accessibleElementById('figure-with-explicit-group-role').role", "'AXRole: AXGroup'"); |
| document.getElementById("content").style.visibility = "hidden"; |