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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/editing/selection/drag-drop-events-expected.txt » ('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 <html>
3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body onload="runTest()">
7 <input type="text" id="src" value="abc">
8 <input type="text" id="dst">
9 <div id="console"></div>
10 <script>
11 description("This test verifies the order of events fired by drag-and-drop.");
12
13 function runTest()
14 {
15 var src = document.getElementById('src');
16 var dst = document.getElementById('dst');
17
18 ['blur', 'change', 'drop', 'focus', 'input'].forEach(function(event) {
19 src.addEventListener(event, debug.bind(null, event + ' src'));
20 dst.addEventListener(event, debug.bind(null, event + ' dst'));
21 });
22
23 src.select();
24 eventSender.mouseMoveTo(src.offsetLeft + src.offsetWidth / 2, src.offsetTop + src.offsetHeight / 2);
25 eventSender.mouseDown();
26 eventSender.leapForward(1000);
27 eventSender.mouseMoveTo(dst.offsetLeft + dst.offsetWidth / 2, dst.offsetTop + dst.offsetHeight / 2);
28 eventSender.mouseUp();
29 }
30 </script>
31 <script src="../../fast/js/resources/js-test-post.js"></script>
32 </body>
33 </html>
OLDNEW
« 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