5 <input type=
"file" name=
"file" multiple
id=
"file">
7 <p>The file upload control above should have text '
2 files,' not a filename.
</p>
12 var input
= document
.getElementById('file');
14 // Drop 2 files to the control.
15 eventSender
.beginDragWithFiles(['input-file-re-render.html', 'script-tests/TEMPLATE.html']);
16 eventSender
.mouseMoveTo(10, 10);
17 eventSender
.mouseUp();
19 // Move the mouse away before moving on. This is done because landing the patch for bug 249328
20 // would cause this test to fail. That patch fixes a hover problem which causes this test
21 // to actually perform correctly (after switching back to display: inline-block, the style of
22 // the file control would be 'hovered', since it's under the mouse). However, the 'expected'
23 // PNG files were created when this was not working properly, and the control is in its un-hovered state.
24 eventSender
.mouseMoveTo(300, 300);
26 // Delete the renderer.
27 input
.style
.display
= 'none';
28 input
.offsetWidth
; // Force to do layout
30 // Attach a renderer again.
31 input
.style
.display
= 'inline-block';
33 testRunner
.notifyDone();
36 if (window
.eventSender
) {
37 window
.onload
= startTest
;
38 testRunner
.waitUntilDone();