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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/drag-nested-eventSender-on-dragover.html

Issue 1728353002: Have EventSender mouseups unwind better on cancellation during dragover. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 <!DOCTYPE html>
2 <body>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
6
7 document.addEventListener("dragover", function () {
8 try {
9 eventSender.beginDragWithFiles(["resources/empty.html"]);
10 console.log("FAIL - nested beginDragWithFiles() expected to throw.");
11 } catch (e) {;}
12 });
13
14 eventSender.beginDragWithFiles(["resources/empty.html"]);
15 eventSender.mouseMoveTo(10, 10);
dcheng 2016/02/24 18:29:22 Where does the mouse start from? It it was already
sof 2016/02/24 18:39:01 last_mouse_pos is initialized as (0,0), no?
16 eventSender.mouseUp();
17 </script>
18 <script src="../../resources/js-test.js"></script>
19 <script>
20 description('Test that nested use of eventSender.beginDragWithFiles() from withi n |dragover| is handled without crashing.');
21 </script>
22 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698