blob: 929de942fc524932d42cb2cc5fc5d1051e208683 [file] [log] [blame]
<html> <!-- webkit-test-runner [ MockScrollbarsControllerEnabled=true ] -->
<script src="../../resources/js-test-pre.js"></script>
<script>
jsTestIsAsync = true;
window.onload = function() {
if (window.internals)
internals.updateLayoutAndStyleForAllFrames();
var list = document.getElementById("list");
if (window.eventSender) {
eventSender.mouseMoveTo(0, 0);
eventSender.mouseMoveTo(list.offsetLeft + 1, list.offsetTop + 1);
eventSender.mouseMoveTo(list.offsetLeft + list.offsetWidth - 4, list.offsetTop + 1);
eventSender.mouseDown();
eventSender.mouseUp();
eventSender.mouseMoveTo(0, 0);
}
finishJSTest();
};
</script>
<script src="../../resources/js-test-post.js"></script>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=153398">https://bugs.webkit.org/show_bug.cgi?id=153398</a>.</p>
<select id="list" size="2">
<option>content1</option>
<option>content2</option>
<option>content3</option>
<option>content4</option>
<option>content5</option>
<option>content6</option>
<option>content7</option>
<option>content8</option>
<option>content9</option>
<option>content10</option>
</select>
<pre id="console"></pre>
</body>
</html>