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

Unified Diff: LayoutTests/fast/canvas/canvas-state-stack-simple-expected.html

Issue 501353002: Transfer canvas state to the next frame with noticable restrictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Release candidate Created 6 years, 3 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-state-stack-simple-expected.html
diff --git a/LayoutTests/fast/canvas/canvas-state-stack-simple-expected.html b/LayoutTests/fast/canvas/canvas-state-stack-simple-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..6a9aa05fb8616f4a0b3edc738b31bdde29cf106e
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-state-stack-simple-expected.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <script>
+ window.onload = function() {
+ var context = document.getElementById("A").getContext("2d");
+ context.scale(2,2);
+ context.beginPath();
+ context.rect(0,0,75,75);
+ context.clip();
+ context.fillStyle = 'green';
+ context.fillRect(0, 0, 30, 30);
+ context.fillRect(50, 50, 30, 30);
+ }
+ </script>
+</head>
+<body>
+ <p>Two green squares of different sizes should appear below</p>
+ <canvas id="A" width=300 height=300></canvas>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698