| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <label tabindex=0 onclick="performEvent();" id="labelElement">label</label> |
| description("This tests that a label element without a corresponding control will perform a press action on itself instead of nothing."); |
| function performEvent() { |
| if (window.accessibilityController) { |
| testRunner.waitUntilDone(); |
| document.getElementById("body").focus(); |
| var body = accessibilityController.focusedElement; |
| var label = body.childAtIndex(0).childAtIndex(0); |
| // if successful, performEvent() will be called and we'll successfully parse. |
| <script src="../resources/js-test-post.js"></script> |