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

Unified Diff: LayoutTests/paint/invalidation/spv2/canvas-resize-expected.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/paint/invalidation/spv2/canvas-resize-expected.html
diff --git a/LayoutTests/fast/repaint/canvas-resize.html b/LayoutTests/paint/invalidation/spv2/canvas-resize-expected.html
similarity index 70%
copy from LayoutTests/fast/repaint/canvas-resize.html
copy to LayoutTests/paint/invalidation/spv2/canvas-resize-expected.html
index 5cc566a7235be73275f94a20f249691e90a5de26..0ba42df5a13fd5d4177f9c71e3a966d97ba3e8d2 100644
--- a/LayoutTests/fast/repaint/canvas-resize.html
+++ b/LayoutTests/paint/invalidation/spv2/canvas-resize-expected.html
@@ -2,7 +2,7 @@
<style>
canvas {
position: absolute;
- width: 600px;
+ width: 500px;
height: 500px;
top: 50px;
left: 50px;
@@ -11,13 +11,7 @@ canvas {
Tests paint invalidation of canvas when it's resized. Passes if there is a whole green circle.
<canvas id="canvas" width="500" height="500"></canvas>
-<script src="resources/text-based-repaint.js"></script>
<script>
-function repaintTest() {
- document.getElementById('canvas').style.width = '500px';
-}
-onload = runRepaintTest;
-
var ctx = document.getElementById('canvas').getContext('2d');
ctx.beginPath();
ctx.arc(250, 250, 250, 0, 2 * Math.PI);

Powered by Google App Engine
This is Rietveld 408576698