blob: 9291807b02a7130ea0947d7ddc1658fffa87f7e7 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ enableAttachmentElement=true ] -->
<html>
<body onload="runTest()">
<div style="-webkit-user-select: all;">text before <attachment id="attachment"></attachment> text after</div>
<script>
var file;
if (window.internals)
file = window.internals.createFile("resources/test-file.txt");
var attachment = document.getElementById('attachment');
attachment.file = file;
window.onload = function () {
if (!window.eventSender)
return;
eventSender.mouseMoveTo(attachment.offsetLeft + 10, attachment.offsetTop + 10);
eventSender.mouseDown(0);
eventSender.mouseUp(0);
}
</script>
</body>
</html>