blob: d11ea8eb26c9304003f9da3d6bc5293c83d3ccba [file]
<!DOCTYPE html>
<html>
<body>
<form>
<input type="file" name="file" multiple id="file">
</form>
<p>The file upload control above should have text '2 files,' not a filename.</p>
<script>
function startTest()
{
var input = document.getElementById('file');
// Drop 2 files to the control.
eventSender.beginDragWithFiles(['input-file-re-render.html', 'script-tests/TEMPLATE.html']);
eventSender.mouseMoveTo(10, 10);
eventSender.mouseUp();
// Delete the renderer.
input.style.display = 'none';
input.offsetWidth; // Force to do layout
// Attach a renderer again.
input.style.display = 'inline-block';
testRunner.notifyDone();
}
if (window.eventSender) {
window.onload = startTest;
testRunner.waitUntilDone();
}
</script>
</body>
</html>