Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / file / input-file-re-render.html
blob3330f816e12c2e0d99be9923ced6b62a84426f35
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <form>
5 <input type="file" name="file" multiple id="file">
6 </form>
7 <p>The file upload control above should have text '2 files,' not a filename.</p>
9 <script>
10 function startTest()
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();
40 </script>
41 </body>
42 </html>