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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/events/drag-nested-eventSender-on-dragover.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/drag-nested-eventSender-on-dragover.html b/third_party/WebKit/LayoutTests/fast/events/drag-nested-eventSender-on-dragover.html
new file mode 100644
index 0000000000000000000000000000000000000000..1eb5c9fa3558ecec38047428aaac81df57b84b6b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/drag-nested-eventSender-on-dragover.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<body>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+document.addEventListener("dragover", function () {
+ try {
+ eventSender.beginDragWithFiles(["resources/empty.html"]);
+ console.log("FAIL - nested beginDragWithFiles() expected to throw.");
+ } catch (e) {;}
+});
+
+eventSender.beginDragWithFiles(["resources/empty.html"]);
+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?
+eventSender.mouseUp();
+</script>
+<script src="../../resources/js-test.js"></script>
+<script>
+description('Test that nested use of eventSender.beginDragWithFiles() from within |dragover| is handled without crashing.');
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698