33 lines
762 B
HTML
33 lines
762 B
HTML
<html>
|
|
|
|
<head>
|
|
<script src="../../resources/js-test.js"></script>
|
|
</head>
|
|
|
|
<body id="body">
|
|
|
|
<p>This tests that option elements have the correct size.</p>
|
|
|
|
<p id="notDRT">This test should only be run inside of DumpRenderTree.</p>
|
|
|
|
<select id="selectElement" multiple>
|
|
<option SELECTED>Option 1</option>
|
|
</select>
|
|
|
|
<p id="console"></p>
|
|
|
|
<script>
|
|
if (window.testRunner && window.accessibilityController) {
|
|
document.getElementById("notDRT").style.visibility = "hidden";
|
|
|
|
document.getElementById("selectElement").focus();
|
|
|
|
var optionElement = accessibilityController.focusedElement.childAtIndex(0);
|
|
|
|
debug("width: " + optionElement.width);
|
|
debug("height: " + optionElement.height);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|