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

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: Giving up and going back to using notifications. 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
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..dd3272f988f4718be756efc557460c314facd860
--- /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="/accessibility/html/pipe.jpg">
+</body>

Powered by Google App Engine
This is Rietveld 408576698