Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / drag-file-crash.html
blob77a8500e7ae353672d7d47dd56717e8aebed3332
1 <style>
2 #scroller {
3 height: 1000px;
5 </style>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 function moveMouseToCenterOfElement(element)
12 var centerX = element.offsetLeft + element.offsetWidth / 2;
13 var centerY = element.offsetTop + element.offsetHeight / 2;
14 eventSender.mouseMoveTo(centerX, centerY);
17 function run()
19 window.scrollBy(0, 1000);
20 if (window.eventSender) {
21 eventSender.beginDragWithFiles(["resources/drag-file-crash-pass.html"]);
22 var fileInput = document.getElementById('file');
23 moveMouseToCenterOfElement(fileInput);
24 eventSender.mouseUp();
27 </script>
28 <body onload="run()">
29 <div id="scroller"></div>
30 <input type="file" id="file">
31 This is a test for https://bugs.webkit.org/show_bug.cgi?id=29276. It passes if it does not crash. If not run from DRT, drag a file onto the file input.
32 </body>