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

Side by Side Diff: chrome/test/data/drag_and_drop/drop_target.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 test drop of a drag-and-drop operation. 2 <!-- Frame that can be used to test drop of a drag-and-drop operation.
3 The drop target (a <div>) fills the frame from (0,0) to (199,199). 3 The drop target (a <div>) 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 div { 8 div {
9 position: absolute; 9 position: absolute;
10 top: 0px; 10 top: 0px;
(...skipping 20 matching lines...) Expand all
31 function drop_handler(ev) { 31 function drop_handler(ev) {
32 window.reportDragAndDropEvent(ev); 32 window.reportDragAndDropEvent(ev);
33 33
34 // This communicates that we have handled the drop 34 // This communicates that we have handled the drop
35 // (i.e. that there is no other, default action to take). 35 // (i.e. that there is no other, default action to take).
36 ev.preventDefault(); 36 ev.preventDefault();
37 } 37 }
38 </script> 38 </script>
39 </head> 39 </head>
40 <body> 40 <body>
41 <div ondragover="dragover_handler(event);" ondrop="drop_handler(event);"> 41 <div ondragover="dragover_handler(event);"
42 <p>Use this frame as a target of a drag-n-drop</p> 42 ondrop="drop_handler(event);"
43 ondragenter="window.reportDragAndDropEvent(event);"
44 ><p>Use this frame as a target of a drag-n-drop</p>
43 </div> 45 </div>
44 </body> 46 </body>
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/drag_and_drop_interactive_uitest.cc ('k') | chrome/test/data/drag_and_drop/event_monitoring.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698