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

Unified Diff: content/test/data/drag_and_drop/image_source.html

Issue 2453693003: Browser tests for OOPIF support for drag-n-drop. (Closed)
Patch Set: Addressed CR feedback from nick@. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/data/drag_and_drop/event_monitoring.js ('k') | content/test/data/drag_and_drop/page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/drag_and_drop/image_source.html
diff --git a/content/test/data/drag_and_drop/image_source.html b/content/test/data/drag_and_drop/image_source.html
new file mode 100644
index 0000000000000000000000000000000000000000..f9969601ba122dea42e9549e6129766c7f757e6c
--- /dev/null
+++ b/content/test/data/drag_and_drop/image_source.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<!-- Frame that can be used to initiate dragging of an image.
+ The image fills the frame from (0,0) to (199,199).
+-->
+<head>
+ <meta charset="utf-8">
+ <style>
+ img {
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ width: 200px;
+ height: 200px;
+ border: 0px;
+ margin: 0px;
+ padding: 0px;
+ }
+ </style>
+ <script src="event_monitoring.js"></script>
+ <script>
+ function dragstart_handler(ev) {
+ window.reportDragAndDropEvent(ev);
+ }
+
+ function dragend_handler(ev) {
+ window.reportDragAndDropEvent(ev);
+ }
+ </script>
+</head>
+<body>
+ <img ondragstart="dragstart_handler(event);"
+ ondragend="dragend_handler(event);"
+ src="/single_face.jpg">
+</body>
« no previous file with comments | « content/test/data/drag_and_drop/event_monitoring.js ('k') | content/test/data/drag_and_drop/page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698