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

Side by Side Diff: LayoutTests/fast/canvas/canvas-before-css.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 <link rel="stylesheet" href="about:blank" type="text/css"> 3 <link rel="stylesheet" href="about:blank" type="text/css">
4 </head> 4 </head>
5 <body> 5 <body>
6 <p>If the canvas below is black, then we managed to draw before loading styl esheets. Hooray!</p> 6 <p>If the canvas below is black, then we managed to draw before loading styl esheets. Hooray!</p>
7 <canvas id="mycanvas" width="400" height="200"></canvas> 7 <canvas id="mycanvas" width="400" height="200"></canvas>
8 <script type="application/x-javascript"> 8 <script type="application/x-javascript">
9 if (window.testRunner)
10 testRunner.dumpAsTextWithPixelResults();
11
12 var canvas = document.getElementById("mycanvas"); 9 var canvas = document.getElementById("mycanvas");
13 canvas.getContext("2d").fillRect(0, 0, canvas.width, canvas.height); 10 canvas.getContext("2d").fillRect(0, 0, canvas.width, canvas.height);
14 </script> 11 </script>
15 </body> 12 </body>
16 </html> 13 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698