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