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

Unified Diff: LayoutTests/editing/selection/drag-drop-events.html

Issue 21030005: Editor: Deffer event dispatch after selection change. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove redundant expectation file Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/editing/selection/drag-drop-events-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/selection/drag-drop-events.html
diff --git a/LayoutTests/editing/selection/drag-drop-events.html b/LayoutTests/editing/selection/drag-drop-events.html
new file mode 100644
index 0000000000000000000000000000000000000000..66878bced7df3c3106da2b0fe375c85f95de69dd
--- /dev/null
+++ b/LayoutTests/editing/selection/drag-drop-events.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script src="../../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body onload="runTest()">
+<input type="text" id="src" value="abc">
+<input type="text" id="dst">
+<div id="console"></div>
+<script>
+description("This test verifies the order of events fired by drag-and-drop.");
+
+function runTest()
+{
+ var src = document.getElementById('src');
+ var dst = document.getElementById('dst');
+
+ ['blur', 'change', 'drop', 'focus', 'input'].forEach(function(event) {
+ src.addEventListener(event, debug.bind(null, event + ' src'));
+ dst.addEventListener(event, debug.bind(null, event + ' dst'));
+ });
+
+ src.select();
+ eventSender.mouseMoveTo(src.offsetLeft + src.offsetWidth / 2, src.offsetTop + src.offsetHeight / 2);
+ eventSender.mouseDown();
+ eventSender.leapForward(1000);
+ eventSender.mouseMoveTo(dst.offsetLeft + dst.offsetWidth / 2, dst.offsetTop + dst.offsetHeight / 2);
+ eventSender.mouseUp();
+}
+</script>
+<script src="../../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/selection/drag-drop-events-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698