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

Unified Diff: LayoutTests/paint/invalidation/spv2/canvas-resize-no-full-invalidation-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-no-full-invalidation-expected.html
diff --git a/LayoutTests/fast/repaint/canvas-resize-no-full-invalidation.html b/LayoutTests/paint/invalidation/spv2/canvas-resize-no-full-invalidation-expected.html
similarity index 79%
copy from LayoutTests/fast/repaint/canvas-resize-no-full-invalidation.html
copy to LayoutTests/paint/invalidation/spv2/canvas-resize-no-full-invalidation-expected.html
index 8f7924d1bbfcb71bf19856aa8e2311c68c3bf193..9652660f27f2e32d5d3a333f93658ec4651b7a05 100644
--- a/LayoutTests/fast/repaint/canvas-resize-no-full-invalidation.html
+++ b/LayoutTests/paint/invalidation/spv2/canvas-resize-no-full-invalidation-expected.html
@@ -2,7 +2,7 @@
<style>
canvas {
position: absolute;
- width: 600px;
+ width: 500px;
height: 500px;
top: 50px;
left: 50px;
@@ -16,13 +16,7 @@ canvas {
Tests paint invalidation of canvas when it's resized which doesn't affect its contents. Passes if there is only incremental invalidation for the resized background.
<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