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

Unified Diff: third_party/WebKit/LayoutTests/css3/images/pixelated-hidpi.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/css3/images/pixelated-hidpi.html
diff --git a/third_party/WebKit/LayoutTests/css3/images/pixelated-hidpi.html b/third_party/WebKit/LayoutTests/css3/images/pixelated-hidpi.html
deleted file mode 100644
index 3b4791c90031a79668f44200fc4d5017c79674db..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/css3/images/pixelated-hidpi.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<style>
- canvas {
- width: 10px;
- height: 10px;
- image-rendering: pixelated;
- }
- img {
- width: 10px;
- height: 10px;
- image-rendering: pixelated;
- }
- svg {
- width: 10px;
- height: 10px;
- }
- image {
- image-rendering: pixelated;
- }
-</style>
-<body>
- <!-- The output should be checkerboards all 20x20 with sharp 2x2 blocks and no blurring. -->
- <!-- FIXME: this test is a little too small to visually inspect for blurring. Should we make the test larger and more accessible? -->
- <canvas width="10" height="10"></canvas>
- <img src="resources/pixelated-hdpi.png">
- <svg><image width="10" height="10" xlink:href="resources/pixelated-hdpi.png"/></svg>
-</body>
-<script>
- function drawImageToCanvas() {
- var image = document.getElementsByTagName("img")[0];
- var canvas = document.getElementsByTagName("canvas")[0].getContext("2d");
- canvas.drawImage(image, 0, 0);
- }
-
- function runTest() {
- if (!window.testRunner)
- return;
-
- // Ignore the render tree.
- testRunner.dumpAsTextWithPixelResults();
-
- testRunner.waitUntilDone();
- testRunner.setBackingScaleFactor(2, function () {
- drawImageToCanvas();
- testRunner.notifyDone();
- });
- }
-
- window.onload = runTest;
-</script>

Powered by Google App Engine
This is Rietveld 408576698