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

Unified Diff: LayoutTests/fast/canvas/canvas-bg-expected.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, 10 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/canvas/canvas-bg-expected.html
diff --git a/LayoutTests/fast/canvas/canvas-bg-expected.html b/LayoutTests/fast/canvas/canvas-bg-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..6e793f2febe7f313b9d9ce276dff7c4710e1e437
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-bg-expected.html
@@ -0,0 +1,24 @@
+<html>
+ <head>
+ <script type="application/x-javascript">
+function draw() {
+ var ctx = document.getElementById('c').getContext('2d');
+
+ ctx.fillStyle = "rgb(200,0,0)";
+ ctx.fillRect (10, 10, 55, 50);
+ ctx.fillRect (310, 10, 55, 50);
+ ctx.fillRect (10, 310, 55, 50);
+ ctx.fillRect (310, 310, 55, 50);
+
+ ctx.fillStyle = "rgba(0, 0, 200, 0.5)";
+ ctx.fillRect (30, 30, 55, 50);
+ ctx.fillRect (330, 30, 55, 50);
+ ctx.fillRect (30, 330, 55, 50);
+ ctx.fillRect (330, 330, 55, 50);
+}
+ </script>
+ </head>
+ <body onload="draw();">
+ <canvas id="c" width="600" height="600"></div>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698