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

Unified Diff: third_party/WebKit/LayoutTests/css3/images/pixelated-hidpi-expected.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-expected.html
diff --git a/third_party/WebKit/LayoutTests/css3/images/pixelated-hidpi-expected.html b/third_party/WebKit/LayoutTests/css3/images/pixelated-hidpi-expected.html
deleted file mode 100644
index 6658169a0dcb08a489f735e2650bf23d78d21e54..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/css3/images/pixelated-hidpi-expected.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<style>
- canvas {
- width: 10px;
- height: 10px;
- image-rendering: pixelated;
- }
-</style>
-<body>
- <!-- Draw the expected 20x20 checkerboards using canvases. -->
- <canvas width="20" height="20"></canvas>
- <canvas width="20" height="20"></canvas>
- <canvas width="20" height="20"></canvas>
-</body>
-<script>
- function drawImageToCanvas() {
- [0, 1, 2].forEach(function (canvasIndex) {
- var context = document.getElementsByTagName("canvas")[canvasIndex].getContext("2d");
- context.width = 20;
- context.height = 20;
- var imageHandle = context.createImageData(20, 20);
- var index = 0;
-
- function white() {
- imageHandle.data[index++] = 255;
- imageHandle.data[index++] = 255;
- imageHandle.data[index++] = 255;
- imageHandle.data[index++] = 255;
- }
-
- function black() {
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 0;
- imageHandle.data[index++] = 255;
- }
-
- // Each black or white block should be 2x2.
- for (var j = 0; j < 5; j++) {
- for (var k = 0; k < 10; k++) {
- white();
- white();
- black();
- black();
- }
- for (var k = 0; k < 10; k++) {
- black();
- black();
- white();
- white();
- }
- }
-
- context.putImageData(imageHandle, 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