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

Side by Side Diff: LayoutTests/fast/canvas/canvas-incremental-repaint-2.html

Issue 207383002: Remove repaint.js from layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More expectations Created 6 years, 9 months 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="en"> 2 <html lang="en">
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <title>Canvas Incremental Repaint</title> 5 <title>Canvas Incremental Repaint</title>
6 <style type="text/css" media="screen"> 6 <style type="text/css" media="screen">
7 canvas { 7 canvas {
8 width: 200px; 8 width: 200px;
9 height: 150px; 9 height: 150px;
10 border: 20px solid black; 10 border: 20px solid black;
11 } 11 }
12 </style> 12 </style>
13 <script src="resources/repaint.js"></script> 13 <script src="../../resources/run-after-display.js"></script>
14 <script type="text/javascript" charset="utf-8"> 14 <script type="text/javascript" charset="utf-8">
15 15
16 if (window.testRunner) { 16 if (window.testRunner) {
17 testRunner.dumpAsTextWithPixelResults(); 17 testRunner.dumpAsTextWithPixelResults();
18 testRunner.waitUntilDone();
18 } 19 }
19 20
20 function repaintTest() 21 function repaintTest()
21 { 22 {
22 var canvas = document.getElementById('canvas1'); 23 var canvas = document.getElementById('canvas1');
23 var ctx = canvas.getContext('2d'); 24 var ctx = canvas.getContext('2d');
24 25
25 ctx.fillStyle = 'green'; 26 ctx.fillStyle = 'green';
26
27 ctx.save(); 27 ctx.save();
28 ctx.setTransform(1, 0, 0, 1, 50, 200); 28 ctx.setTransform(1, 0, 0, 1, 50, 200);
29 // Test the the transform applies the matrix in the correct order. 29 // Test the the transform applies the matrix in the correct order.
30 ctx.transform(1, 0, 0, -1, 0, 0); 30 ctx.transform(1, 0, 0, -1, 0, 0);
31 ctx.fillRect(0, 100, 200, 80); 31 ctx.fillRect(0, 100, 200, 80);
32 ctx.restore(); 32 ctx.restore();
33 if (window.testRunner) {
34 testRunner.notifyDone();
35 }
33 } 36 }
34
35 </script> 37 </script>
36 </head> 38 </head>
37 <body onload="runRepaintTest()"> 39 <body onload="runAfterDisplay(repaintTest)">
38 <canvas id="canvas1"></canvas> 40 <canvas id="canvas1"></canvas>
39 </body> 41 </body>
40 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698