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

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

Issue 2478583005: Browser tests for starting a drag-and-drop out of an OOPIF. (Closed)
Patch Set: Rebasing... Created 4 years, 1 month 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
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;
11 left: 0px; 11 left: 0px;
12 width: 200px; 12 width: 200px;
13 height: 200px; 13 height: 200px;
14 border: 0px; 14 border: 0px;
15 margin: 0px; 15 margin: 0px;
16 padding: 0px; 16 padding: 0px;
17 } 17 }
18 </style> 18 </style>
19 <script src="event_monitoring.js"></script> 19 <script src="event_monitoring.js"></script>
20 <script> 20 <script>
21 function dragstart_handler(ev) { 21 function dragstart_handler(ev) {
22 ev.dataTransfer.effectAllowed = "copy";
22 window.reportDragAndDropEvent(ev); 23 window.reportDragAndDropEvent(ev);
23 } 24 }
24 25
25 function dragend_handler(ev) { 26 function dragend_handler(ev) {
26 window.reportDragAndDropEvent(ev); 27 window.reportDragAndDropEvent(ev);
27 } 28 }
28 </script> 29 </script>
29 </head> 30 </head>
30 <body> 31 <body>
31 <img ondragstart="dragstart_handler(event);" 32 <img ondragstart="dragstart_handler(event);"
32 ondragend="dragend_handler(event);" 33 ondragend="dragend_handler(event);"
33 src="/single_face.jpg"> 34 src="/image_decoding/droids.jpg">
34 </body> 35 </body>
OLDNEW
« no previous file with comments | « chrome/test/data/drag_and_drop/event_monitoring.js ('k') | chrome/test/data/drag_and_drop/page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698