Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / drag-drop-input-in-svg.svg
blobf25b2dde756917682262ad52b632009472020c41
1 <?xml version="1.0"?>
2 <svg xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink"
4 xmlns:xhtml="http://www.w3.org/1999/xhtml">
5 <foreignObject width="200" height="80">
6 <xhtml:div>
7 <xhtml:input id="src" type="text" value="Select and drag this text"></xhtml:input>
8 <xhtml:input id="dst" type="text" value="to here"></xhtml:input>
9 </xhtml:div>
10 </foreignObject>
11 <text>PASS without crash in Debug mode.</text>
12 <script>
13 (function runTest()
15 if (!window.testRunner)
16 return;
18 testRunner.dumpAsText();
19 testRunner.waitUntilDone();
21 var sourceInput = document.getElementById("src");
22 sourceInput.focus();
23 sourceInput.setSelectionRange(0, 6);
24 var x = sourceInput.offsetLeft + 10;
25 var y = sourceInput.offsetTop + sourceInput.offsetHeight / 2;
26 eventSender.mouseMoveTo(x, y);
27 eventSender.mouseDown();
29 eventSender.leapForward(500);
31 var destinationInput = document.getElementById("dst");
32 eventSender.mouseMoveTo(destinationInput.offsetLeft + 10, destinationInput.offsetTop + destinationInput.offsetHeight / 2);
33 eventSender.mouseUp();
35 sourceInput.parentNode.removeChild(sourceInput);
36 destinationInput.parentNode.removeChild(destinationInput);
38 testRunner.notifyDone();
39 })();
40 </script>
41 </svg>