Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / remove-target-with-shadow-in-drag.html
blob5feaecc04e29ee297bfa9fc58822d1ade52b949c
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script>
6 if (!window.testRunner)
7 document.writeln("This crash test needs to be ran inside DumpRenderTree");
9 var target;
11 function startTest() {
12 if (!window.testRunner)
13 return;
15 testRunner.dumpAsText();
17 function mouseMoveToCenterOfElement(element) {
18 eventSender.mouseMoveTo(element.offsetLeft + element.offsetWidth / 2, element.offsetTop + element.offsetHeight / 2);
21 var src = document.getElementById('src');
22 mouseMoveToCenterOfElement(src);
23 eventSender.mouseDown();
24 eventSender.leapForward(200);
26 target = document.getElementById('target');
27 eventSender.mouseMoveTo(target.offsetLeft + 5, target.offsetTop + 5);
28 eventSender.mouseUp();
30 document.body.innerHTML = "PASS. DRT didn't crash."
33 function trigger() {
34 document.body.removeChild(target);
35 target = null;
36 if (window.GCController)
37 GCController.collect();
40 </script>
41 <img id="src" src="resources/abe.png" onload="startTest()" draggable="true" ondrag="trigger();">
42 <textarea id="target" style="width: 500px; height: 500px;">Dropzone</textarea>
43 </body>
44 </html>