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

Unified Diff: Source/web/tests/data/canvas-copy-image.html

Issue 270613004: Implement "Copy image" for canvas (blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add test Created 6 years, 6 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
« Source/core/editing/Editor.cpp ('K') | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/data/canvas-copy-image.html
diff --git a/Source/web/tests/data/canvas-copy-image.html b/Source/web/tests/data/canvas-copy-image.html
new file mode 100644
index 0000000000000000000000000000000000000000..90abda7eed39578d9a79b55ae076d8771392a4c5
--- /dev/null
+++ b/Source/web/tests/data/canvas-copy-image.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
yosin_UTC9 2014/06/30 09:17:08 nit: We don't need to have empty HEAD element.
zino 2014/06/30 10:30:32 Done.
+</head>
+<body>
+ <canvas width="200" height="200"></canvas>
yosin_UTC9 2014/06/30 09:17:08 nit: We don't need to indent HTML.
zino 2014/06/30 10:30:32 Done.
+ <script>
+ var canvas = document.querySelector("canvas");
+ var context = canvas.getContext("2d");
+ context.fillStyle = "red";
+ context.fillRect(0, 0, 200, 200);
+ </script>
+</body>
+</html>
« Source/core/editing/Editor.cpp ('K') | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698