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

Side by Side Diff: third_party/WebKit/LayoutTests/images/paint-subrect-grid.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 unified diff | Download patch
OLDNEW
1 <canvas id="canvas" width="30" height="30"></canvas> 1 <canvas id="canvas" width="30" height="30"></canvas>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsTextWithPixelResults(); 4 testRunner.dumpAsTextWithPixelResults();
5 5
6 var img = new Image(); 6 var img = new Image();
7 // This is a 11x11 black and white grid. 7 // This is a 11x11 black and white grid.
8 img.src = 'resources/grid-small.png'; 8 img.src = 'resources/grid-small.png';
9 9
10 function drawSubRectScaled(ctx, img, x, y, w, h, scale) 10 function drawSubRectScaled(ctx, img, x, y, w, h, scale)
(...skipping 23 matching lines...) Expand all
34 // Draw the middle row. 34 // Draw the middle row.
35 drawSubRectScaled(ctx, img, 0, 3.66, 5.5, 3.66, scale); 35 drawSubRectScaled(ctx, img, 0, 3.66, 5.5, 3.66, scale);
36 drawSubRectScaled(ctx, img, 5.5, 3.66, 5.5, 3.66, scale); 36 drawSubRectScaled(ctx, img, 5.5, 3.66, 5.5, 3.66, scale);
37 37
38 // Draw the bottom row. 38 // Draw the bottom row.
39 drawSubRectScaled(ctx, img, 0, 7.33, 3.66, 3.66, scale); 39 drawSubRectScaled(ctx, img, 0, 7.33, 3.66, 3.66, scale);
40 drawSubRectScaled(ctx, img, 3.66, 7.33, 3.66, 3.66, scale); 40 drawSubRectScaled(ctx, img, 3.66, 7.33, 3.66, 3.66, scale);
41 drawSubRectScaled(ctx, img, 7.33, 7.33, 3.66, 3.66, scale); 41 drawSubRectScaled(ctx, img, 7.33, 7.33, 3.66, 3.66, scale);
42 } 42 }
43 </script> 43 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698