Index: third_party/WebKit/LayoutTests/fast/hidpi/static/drag-image.html |
diff --git a/third_party/WebKit/LayoutTests/fast/images/drag-image.html b/third_party/WebKit/LayoutTests/fast/hidpi/static/drag-image.html |
similarity index 83% |
copy from third_party/WebKit/LayoutTests/fast/images/drag-image.html |
copy to third_party/WebKit/LayoutTests/fast/hidpi/static/drag-image.html |
index 744bbd61e725be2fb259b9e2e142fe35baf7f776..bad416c6aa4b4819956169c98089459428ffea5c 100644 |
--- a/third_party/WebKit/LayoutTests/fast/images/drag-image.html |
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/static/drag-image.html |
@@ -1,19 +1,18 @@ |
<!DOCTYPE html> |
<style> |
#image { |
- width: 22px; |
- height: 22px; |
+ width: 100px; |
+ height: 50px; |
oshima
2016/01/27 19:44:51
I'm using skewed size (original image is square) t
|
image-rendering: pixelated; |
} |
</style> |
<body> |
- <!-- Simulate dragging an image and dump the generated drag image. --> |
- <img id="image" src="resources/grid-small.png"> |
+ <!-- Simulate dragging an image and dump the generated drag image at highder pixel density. --> |
+ <image id="image" srcset="../resources/image-set-1x.png 1x, ../resources/image-set-2x.png 2x"> |
</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; |