Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / file-input-hidden-in-ondrop.html
blobbf624536042ae3984f42844d70282247e626422d
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.waitUntilDone();
11 var dropTarget;
13 function test()
15 dropTarget = document.getElementById("drop-target");
16 dropTarget.addEventListener("drop", function() {
17 dropTarget.style.display = "none";
18 setTimeout(function() {
19 shouldBeEqualToString("dropTarget.value", "C:\\fakepath\\abe.png");
20 if (window.testRunner)
21 testRunner.notifyDone();
22 }, 0);
23 }, false);
25 if (window.eventSender) {
26 eventSender.beginDragWithFiles(["resources/abe.png"]);
27 var x = dropTarget.offsetLeft + dropTarget.offsetWidth / 2;
28 var y = dropTarget.offsetTop + dropTarget.offsetHeight / 2;
29 eventSender.mouseMoveTo(x, y);
30 eventSender.mouseUp();
33 </script>
34 </head>
35 <body onload="test()">
36 <input type="file" id="drop-target">
37 </body>
38 </html>