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

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

Issue 2507223003: Tests for dragging between two frames (potentially cross-site from main frame). (Closed)
Patch Set: Added SuppressPassingStartDragFurther method + moved constant definitions. 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
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 ev.dataTransfer.effectAllowed = "copy";
23 window.reportDragAndDropEvent(ev); 23 window.reportDragAndDropEvent(ev);
24 } 24 }
25
26 function dragend_handler(ev) {
27 window.reportDragAndDropEvent(ev);
28 }
29 </script> 25 </script>
30 </head> 26 </head>
31 <body> 27 <body>
32 <img ondragstart="dragstart_handler(event);" 28 <img ondragstart="dragstart_handler(event);"
33 ondragend="dragend_handler(event);" 29 ondragend="window.reportDragAndDropEvent(event);"
30 ondragleave="window.reportDragAndDropEvent(event);"
34 src="/image_decoding/droids.jpg"> 31 src="/image_decoding/droids.jpg">
35 </body> 32 </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