Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-toDataURL-jpeg-maximum-quality.html
blob77bd2e898984012039eb70c5ca4f6acdc921778a
1 The letters in the right image should be crisp and non-blurry like the letters in the left image.<p>
2 <canvas></canvas>
3 <img id="result" onload="testDone()">
5 <script>
6 if (window.testRunner) {
7 window.testRunner.dumpAsTextWithPixelResults();
8 window.testRunner.waitUntilDone();
11 function testDone()
13 if (window.testRunner)
14 window.testRunner.notifyDone();
17 var image = new Image();
18 image.onload = function() {
19 var canvas = document.querySelector('canvas');
20 canvas.width = this.width;
21 canvas.height = this.height;
22 canvas.getContext('2d').drawImage(this, 0, 0);
23 result.src = canvas.toDataURL('image/jpeg', 1.0);
24 document.body.style.zoom = 1.3;
27 image.src = "resources/letters.png";
28 </script>