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

Unified Diff: LayoutTests/fast/canvas/fill-stroke-clip-reset-path-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/fill-stroke-clip-reset-path-expected.html
diff --git a/LayoutTests/fast/canvas/fill-stroke-clip-reset-path-expected.html b/LayoutTests/fast/canvas/fill-stroke-clip-reset-path-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..b3000b11e14f11f3ce5b8bc9422fbc7cad95ae49
--- /dev/null
+++ b/LayoutTests/fast/canvas/fill-stroke-clip-reset-path-expected.html
@@ -0,0 +1,25 @@
+<html>
+<head>
+<script>
+function testOne(operation)
+{
+ var context = document.getElementById(operation).getContext('2d');
+
+ context.fillStyle = "green";
+ context.fillRect(0, 0, 1000, 1000);
+}
+function test()
+{
+ testOne("fill");
+ testOne("stroke");
+ testOne("clip");
+}
+</script>
+</head>
+<body onload="test()">
+<p>All three of these small canvases should be green, not red.</p>
+<canvas id="fill" width="20" height="20"></canvas>
+<canvas id="stroke" width="20" height="20"></canvas>
+<canvas id="clip" width="20" height="20"></canvas>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698