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

Side by Side Diff: LayoutTests/fast/canvas/canvas-bg.html

Issue 187393007: Convert some pixel tests in fast/canvas into ref tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 div { background: -webkit-canvas(squares); width:600px; height:600px; border:2p x solid black } 4 div { background: -webkit-canvas(squares); width:600px; height:600px; }
5 </style> 5 </style>
6 6
7 <script type="application/x-javascript"> 7 <script type="application/x-javascript">
8 function draw(w, h) { 8 function draw(w, h) {
9 var ctx = document.getCSSCanvasContext("2d", "squares", w, h); 9 var ctx = document.getCSSCanvasContext("2d", "squares", w, h);
10 10
11 ctx.fillStyle = "rgb(200,0,0)"; 11 ctx.fillStyle = "rgb(200,0,0)";
12 ctx.fillRect (10, 10, 55, 50); 12 ctx.fillRect (10, 10, 55, 50);
13 13
14 ctx.fillStyle = "rgba(0, 0, 200, 0.5)"; 14 ctx.fillStyle = "rgba(0, 0, 200, 0.5)";
15 ctx.fillRect (30, 30, 55, 50); 15 ctx.fillRect (30, 30, 55, 50);
16 } 16 }
17 </script> 17 </script>
18 </head> 18 </head>
19 <body onload="draw(300, 300)"> 19 <body onload="draw(300, 300)">
20 <div></div> 20 <div></div>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698