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

Unified Diff: third_party/WebKit/LayoutTests/css3/images/pixelated-canvas.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-canvas.html
diff --git a/third_party/WebKit/LayoutTests/css3/images/pixelated-canvas.html b/third_party/WebKit/LayoutTests/css3/images/pixelated-canvas.html
deleted file mode 100644
index 6caa2b9d99d83bdd1c90336d5eac6292286bf685..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/css3/images/pixelated-canvas.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<style>
- canvas {
- width: 100px;
- height: 100px;
- image-rendering: pixelated;
- }
-</style>
-<body>
- <!-- The resulting image should be 100x100, consisting of 4 50x50 blocks of solid color, with no blurring of edges -->
- <canvas width="2" height="2"></canvas>
-</body>
-<script>
- // Ignore the render tree.
- if (window.testRunner)
- window.testRunner.dumpAsTextWithPixelResults();
-
- var canvas;
- var imageHandle;
- canvas = document.getElementsByTagName("canvas")[0].getContext("2d");
- canvas.width = 2;
- canvas.height = 2;
- imageHandle = canvas.createImageData(2, 2);
-
- var index = 0;
- var length = imageHandle.data.length;
-
- imageHandle.data[index++] = 255;
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 255;
-
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 255;
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 255;
-
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 255;
- imageHandle.data[index++] = 255;
-
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 255;
-
- canvas.putImageData(imageHandle, 0, 0);
-</script>

Powered by Google App Engine
This is Rietveld 408576698