blob: 21638982917c8439b0b0f241c79a89ade6226ff1 [file] [log] [blame]
<!DOCTYPE htlm>
<html>
<body>
<p>This tests clicking on a region immediately after a file input field. WebKit should not crash and you should see PASS below.
To manually test this, click on the black region below.</p>
<div id="form" style="width: 200px; height: 200px; position: absolute; top: 20px; left: 0px; background: black;">
<input type="file" style="width: 100px; height: 50px; display: block; padding: 10px; background: white;">
</div>
<script>
if (window.testRunner && window.eventSender) {
testRunner.dumpAsText();
eventSender.mouseMoveTo(180, 50);
eventSender.leapForward(200);
eventSender.mouseDown();
eventSender.leapForward(200);
eventSender.mouseUp();
eventSender.leapForward(200);
document.writeln('PASS');
}
</script>
</body>
</html>