Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dnd/cancel-dragging-outside-page.html

Issue 2900123002: Account for mouse leave events in dragging flow (Closed)
Patch Set: Add the test Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/MouseEventManager.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <link rel="stylesheet" href="resources/link-dragging-common.css" />
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5
6 <p>
7 Please attempt to drag the "Drag Me" text out of the browser and release the d rag.
8 </p>
9
10 <article>
11 <a class="dragged box" id="target" draggable="true" href="https://www.chromium .org">
12 Drag Me
13 </a>
14 </article>
15
16 <script>
17 if (window.eventSender) {
18 test( () => {
19 const draggable_link = document.querySelector("#target");
20
21 const clientRect = draggable_link.getBoundingClientRect();
22 const centerX = (clientRect.left + clientRect.right) / 2;
23 const centerY = (clientRect.top + clientRect.bottom) / 2;
24 eventSender.mouseMoveTo(centerX, centerY);
25 eventSender.mouseDown();
26 eventSender.mouseMoveTo(centerX+200, centerY+200);
dtapuska 2017/05/23 20:50:21 Is this guaranteed to be outside of the page? Shou
27 eventSender.mouseLeave();
28 }, "The renderer should not crash");
29 }
30 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/MouseEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698