blob: 3f10ef455d53a88f7c9bf36993a19ced83252a21 [file]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../fast/js/resources/js-test-pre.js"></script>
<script>
function runTest() {
description("This tests that the 'state-changed:selected' signal is emitted when arrowing through the options of a combobox while collapsed.");
if (window.testRunner) {
testRunner.dumpAsText();
}
if (window.accessibilityController) {
accessibilityController.logAccessibilityEvents();
}
// Focus in the combobox and move around the options. The signal
// 'state-change:selected' should be emitted with every change.
document.getElementById("combo").focus();
eventSender.keyDown("downArrow");
eventSender.keyDown("downArrow");
eventSender.keyDown("upArrow");
eventSender.keyDown("upArrow");
}
</script>
</head>
<body onload="runTest();">
<form>
<select id="combo">
<option selected value='foo'>foo</option>
<option value='bar'>bar</option>
<option value='baz'>baz</option>
</select>
</form>
<p id="description"></p>
<div id="console"></div>
<script>
</script>
<script src="../../../fast/js/resources/js-test-post.js"></script>
</body>
</html>