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(); |