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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/paint-subrect.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/paint-subrect.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/paint-subrect.html b/third_party/WebKit/LayoutTests/fast/images/paint-subrect.html
deleted file mode 100644
index 87b72bb199dff09269a8b81a2b0018daf00abaa8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/images/paint-subrect.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<canvas id="canvas" width="200" height="100"></canvas>
-<script>
-if (window.testRunner)
- testRunner.dumpAsTextWithPixelResults();
-
-var img = new Image();
-// This is a 2x1 image, blue at (0, 0) and green at (1, 0).
-img.src = 'data:image/png;base64,' +
-'iVBORw0KGgoAAAANSUhEUgAAAAIAAAABCAIAAAB7QOjdAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAA' +
-'CxMBAJqcGAAAAAd0SU1FB9wIGxQKIbPpHtMAAAAPSURBVAjXY2Bg+M/wnwEABgEB/6KPEdkAAAAASUVO' +
-'RK5CYII=';
-
-img.onload = function()
-{
- // Start from the middle of the blue pixel and stretch to the entire
- // canvas. Canvas should have 1/3 blue on the left and 2/3 green on the
- // right, with gradient if interpolation allows.
- var ctx = document.getElementById("canvas").getContext("2d");
- ctx.drawImage(img, 0.5, 0, 1.5, 1, 0, 0, 200, 100);
-}
-</script>

Powered by Google App Engine
This is Rietveld 408576698