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

Unified Diff: LayoutTests/paint/invalidation/spv2/canvas-putImageData.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-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>

Powered by Google App Engine
This is Rietveld 408576698