blob: 2b619efe525bc7667359c76b24a9fc28890c38c9 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<form>
<select id="target">
<option accesskey="x">foo</option>
</select>
</form>
<p id="description"></p>
<div id="console"></div>
<script>
description('This test is to ensure that we do not crash when selecting an item from a menu list in a list box through an access key.')
if (window.layoutTestController) {
layoutTestController.dumpAsText();
var selectElement = document.getElementById("target");
selectElement.focus();
if (window.eventSender) {
var modifiers;
if (navigator.userAgent.search(/\bMac OS X\b/) != -1)
modifiers = ['ctrlKey', 'altKey'];
else
modifiers = ['altKey'];
eventSender.keyDown('x', modifiers);
testPassed("Did not crash");
}
}
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>