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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/drag-image.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) 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: third_party/WebKit/LayoutTests/fast/images/drag-image.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/drag-image.html b/third_party/WebKit/LayoutTests/fast/images/drag-image.html
deleted file mode 100644
index 744bbd61e725be2fb259b9e2e142fe35baf7f776..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/images/drag-image.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<style>
- #image {
- width: 22px;
- height: 22px;
- image-rendering: pixelated;
- }
-</style>
-<body>
- <!-- Simulate dragging an image and dump the generated drag image. -->
- <img id="image" src="resources/grid-small.png">
-</body>
-<script>
- function drag() {
- testRunner.dumpDragImage();
-
- var image = document.getElementById('image');
- var startX = image.offsetLeft + image.offsetWidth / 2;
- var startY = image.offsetTop + image.offsetHeight / 2;
- var positionX = startX + image.offsetWidth;
- var positionY = startY + image.offsetHeight;
-
- eventSender.dragMode = true;
- eventSender.mouseMoveTo(startX, startY);
- eventSender.mouseDown();
- eventSender.mouseMoveTo(positionX, positionY);
- eventSender.mouseUp();
- }
-
- if (!window.testRunner || !window.eventSender) {
- document.write("This test does not work in manual mode.");
- } else {
- window.onload = drag;
- }
-</script>

Powered by Google App Engine
This is Rietveld 408576698