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

Side by Side Diff: LayoutTests/fast/canvas/canvas-from-image.html

Issue 765893003: Test drawing an image to a canvas, then upscaling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-from-image-expected.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 img {
4 display: none;
5 }
6 canvas {
7 width: 520px;
8 height: 520px;
9 }
10 </style>
11 <body>
12 <img src="resources/html5.png">
13 <!-- Test that gpu accelerated canvases work with pixelated. -->
14 <!-- Canvases should be overlaid at an offset. Only the middle one should be blurred. -->
15 <canvas class="canvas0" width="260" height="260"></canvas>
16 </body>
17 <script>
18 // Ignore the render tree.
19 if (window.testRunner)
20 window.testRunner.dumpAsTextWithPixelResults();
21
22 function draw() {
23 var ctx = document.getElementsByTagName("canvas")[0].getContext("2d")
24 ctx.drawImage(document.getElementsByTagName("img")[0], 10, 10);
25 }
26 window.onload = draw;
27 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-from-image-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698