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

Side by Side Diff: chrome/test/data/drag_and_drop/image_source.html

Issue 2577553002: Wait for mousemove DOM event, before simulating mousedown for dragstart tests. (Closed)
Patch Set: Expanded a comment as suggested by lfg@ (to refer to bug 647378). Created 4 years 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
« no previous file with comments | « chrome/browser/ui/views/drag_and_drop_interactive_uitest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- Frame that can be used to initiate dragging of an image. 2 <!-- Frame that can be used to initiate dragging of an image.
3 The image fills the frame from (0,0) to (199,199). 3 The image fills the frame from (0,0) to (199,199).
4 --> 4 -->
5 <head> 5 <head>
6 <meta charset="utf-8"> 6 <meta charset="utf-8">
7 <style> 7 <style>
8 img { 8 img {
9 position: absolute; 9 position: absolute;
10 top: 0px; 10 top: 0px;
(...skipping 10 matching lines...) Expand all
21 function dragstart_handler(ev) { 21 function dragstart_handler(ev) {
22 ev.dataTransfer.effectAllowed = "copy"; 22 ev.dataTransfer.effectAllowed = "copy";
23 window.reportDragAndDropEvent(ev); 23 window.reportDragAndDropEvent(ev);
24 } 24 }
25 </script> 25 </script>
26 </head> 26 </head>
27 <body> 27 <body>
28 <img ondragstart="dragstart_handler(event);" 28 <img ondragstart="dragstart_handler(event);"
29 ondragend="window.reportDragAndDropEvent(event);" 29 ondragend="window.reportDragAndDropEvent(event);"
30 ondragleave="window.reportDragAndDropEvent(event);" 30 ondragleave="window.reportDragAndDropEvent(event);"
31 onmousedown="window.reportDragAndDropEvent(event);"
32 onmousemove="window.reportDragAndDropEvent(event);"
31 src="/image_decoding/droids.jpg"> 33 src="/image_decoding/droids.jpg">
32 </body> 34 </body>
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/drag_and_drop_interactive_uitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698