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

Unified Diff: LayoutTests/fast/canvas/canvas-incremental-repaint-3.html

Issue 1149973006: Fix incorrect paint invalidations with accelerated 2D canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: using similarity 100 Created 5 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-incremental-repaint-3-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/canvas-incremental-repaint-3.html
diff --git a/LayoutTests/fast/canvas/canvas-incremental-repaint-3.html b/LayoutTests/fast/canvas/canvas-incremental-repaint-3.html
new file mode 100644
index 0000000000000000000000000000000000000000..2db8e3945d344d9003da9aa1023b828f774d61a1
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-incremental-repaint-3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Canvas Incremental Repaint</title>
+ <style type="text/css" media="screen">
+ canvas {
+ width: 300px;
+ height: 300px;
+ border: 20px solid green;
+ padding: 10px;
+ background-color: green;
+ }
+ </style>
+ <script src="../../resources/run-after-layout-and-paint.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ if (window.testRunner) {
+ testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
+ }
+
+ var canvas;
+ var ctx;
+
+ function beginTest()
+ {
+ canvas = document.getElementById('canvas1');
+ ctx = canvas.getContext('2d');
+ canvas.width = 300;
+ canvas.height = 300;
+ ctx.fillStyle = 'red';
+ ctx.fillRect(0, 0, 300, 300);
+ runAfterLayoutAndPaint(repaintTest)
+ }
+
+ function repaintTest()
+ {
+ ctx.fillStyle = 'green';
+ ctx.fillRect(0, 0, 300, 300);
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ }
+ </script>
+</head>
+<body onload="beginTest()">
+ <p>Expect a solid green square below this text.</p>
+ <canvas id="canvas1"></canvas>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-incremental-repaint-3-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698