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

Unified Diff: LayoutTests/paint/invalidation/spv2/canvas-resize.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.html
diff --git a/LayoutTests/fast/repaint/canvas-resize.html b/LayoutTests/paint/invalidation/spv2/canvas-resize.html
similarity index 64%
copy from LayoutTests/fast/repaint/canvas-resize.html
copy to LayoutTests/paint/invalidation/spv2/canvas-resize.html
index 5cc566a7235be73275f94a20f249691e90a5de26..f573f42d662bfa3688e5de8f044572e2c2e2e00f 100644
--- a/LayoutTests/fast/repaint/canvas-resize.html
+++ b/LayoutTests/paint/invalidation/spv2/canvas-resize.html
@@ -1,3 +1,4 @@
+<!-- Based on fast/repaint/canvas-resize.html -->
<!DOCTYPE html>
<style>
canvas {
@@ -11,12 +12,15 @@ 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 src="resources/paint-invalidation-test.js"></script>
<script>
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutHTMLCanvas (positioned) CANVAS id='canvas'",
+];
+function paintInvalidationTest() {
document.getElementById('canvas').style.width = '500px';
}
-onload = runRepaintTest;
+onload = runPaintInvalidationTest;
var ctx = document.getElementById('canvas').getContext('2d');
ctx.beginPath();

Powered by Google App Engine
This is Rietveld 408576698