Index: LayoutTests/paint/invalidation/spv2/canvas-putImageData.html |
diff --git a/LayoutTests/fast/repaint/canvas-putImageData.html b/LayoutTests/paint/invalidation/spv2/canvas-putImageData.html |
similarity index 79% |
copy from LayoutTests/fast/repaint/canvas-putImageData.html |
copy to LayoutTests/paint/invalidation/spv2/canvas-putImageData.html |
index 6d713bd8ae7664279bb25b05ee80be8ef28e92bf..1af7766d7ff57b87d1aaa79b59a3408270b7f2cf 100644 |
--- a/LayoutTests/fast/repaint/canvas-putImageData.html |
+++ b/LayoutTests/paint/invalidation/spv2/canvas-putImageData.html |
@@ -1,6 +1,7 @@ |
+<!-- Based on fast/repaint/canvas-putImageData.html --> |
<!-- Test for https://bugs.webkit.org/show_bug.cgi?id=46319 --> |
<head> |
- <script src="resources/text-based-repaint.js"></script> |
+ <script src="resources/paint-invalidation-test.js"></script> |
</head> |
<body> |
<canvas id="canvas" width="100" height="100"></canvas> |
@@ -25,7 +26,10 @@ |
ctx.fillRect(80, 80, 10, 10); |
window.testIsAsync = true; |
- function repaintTest() |
+ window.expectedPaintInvalidationObjects = [ |
+ "LayoutHTMLCanvas CANVAS id='canvas'", |
+ ]; |
+ function paintInvalidationTest() |
{ |
// patch up red squares with putImageData |
ctx.putImageData(imageDataGreen, 0, 0); |
@@ -33,9 +37,9 @@ |
ctx.putImageData(imageDataRedWithInsetGreen, 70, 70, 10, 10, 10, 10); |
// Because canvas invalidations are processed at the end of the current task, |
// the repaint test has to end in a subsequent task in order to capture the repaint. |
- setTimeout(finishRepaintTest, 0); |
+ setTimeout(finishPaintInvalidationTest, 0); |
} |
- window.onload = runRepaintTest; |
+ window.onload = runPaintInvalidationTest; |
</script> |
</body> |