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

Side by Side Diff: LayoutTests/fast/events/drag-extra-mouse-down-no-crash.html

Issue 839253002: Gracefully handle mismatched drag ended notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ignore mismatched dragSourceEndedAt() invocations. Created 5 years, 11 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
OLDNEW
(Empty)
1 <p>
jochen (gone - plz use gerrit) 2015/01/12 12:20:25 <!DOCTYPE html>
sof 2015/01/12 22:27:56 Done.
2 Ill-formed uses of eventSender.mouseDown() while drag is under way should not cr ash.
3 </p>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
8 }
9
10 function runTest() {
11 if (!window.eventSender)
12 return;
13
14 eventSender.beginDragWithFiles([""]);
15 var x = document.getElementById("link").offsetLeft;
16 var y = document.getElementById("link").offsetTop;
17 eventSender.mouseMoveTo(x, y);
18 eventSender.mouseDown();
19 eventSender.mouseMoveTo(x, y + 1);
20 eventSender.mouseUp();
21 testRunner.notifyDone();
22 }
23
24 window.onload = runTest;
25 </script>
26 <a href="data:text/html," id="link">PASS(no crash)</a>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/drag-extra-mouse-down-no-crash-expected.txt » ('j') | Source/core/page/EventHandler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698