Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / drag-drop-modifies-page.html
blobc933b1956fc9b566845a44c3d8d6d6f012e6c467
1 <html>
2 <head>
3 <script src=../editing.js type="text/javascript"></script>
4 <script>
5 function editingTest() {
7 if (!window.testRunner)
8 return;
9 if (window.internals)
10 internals.settings.setEditingBehavior("mac");
12 extendSelectionForwardByWordCommand();
14 window.testRunner.waitUntilDone();
16 // Drag 'hello'
17 var e = document.getElementById("dragme");
18 x = e.offsetLeft + 10;
19 y = e.offsetTop + e.offsetHeight / 2;
20 eventSender.mouseMoveTo(x, y);
21 eventSender.mouseDown();
22 // and drop it off to the right somewhere
23 eventSender.leapForward(500);
24 eventSender.mouseMoveTo(x + 300, y);
25 eventSender.mouseUp();
27 window.testRunner.notifyDone();
29 </script>
30 <title>Drag and drop within a text input field modifies page</title>
31 </head>
32 <body>
33 <p>This tests non-smartmove drag/drop. The space should be deleted on move,
34 but not reinserted on drop, resulting in "worldhello".</p>
35 <div contenteditable="true" id="test"><span id="dragme">hello</span> world</div>
36 <script>runEditingTest();</script>
37 </body>
38 </html>