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

Unified Diff: LayoutTests/paint/invalidation/spv2/do-not-paint-below-image-baseline.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/do-not-paint-below-image-baseline.html
diff --git a/LayoutTests/fast/images/do-not-paint-below-image-baseline.html b/LayoutTests/paint/invalidation/spv2/do-not-paint-below-image-baseline.html
similarity index 61%
copy from LayoutTests/fast/images/do-not-paint-below-image-baseline.html
copy to LayoutTests/paint/invalidation/spv2/do-not-paint-below-image-baseline.html
index 291d5c106298dcf9772bc665f91a82dfccb7d1cf..a013daba6a723c200848dfa7f7fa154bb98f5918 100644
--- a/LayoutTests/fast/images/do-not-paint-below-image-baseline.html
+++ b/LayoutTests/paint/invalidation/spv2/do-not-paint-below-image-baseline.html
@@ -1,9 +1,13 @@
+<!-- Based on fast/images/do-not-paint-below-image-baseline.html -->
<!DOCTYPE html>
<html>
<head>
- <script src="../repaint/resources/text-based-repaint.js"></script>
+ <script src="resources/paint-invalidation-test.js"></script>
<script>
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ "LayoutImage IMG",
+ ];
+ function paintInvalidationTest()
{
var things = document.getElementsByClassName("before");
while (things.length)
@@ -22,8 +26,8 @@
}
</style>
</head>
- <body onload="runRepaintTest()">
- <img class="before" src="resources/59.jpg">
+ <body onload="runPaintInvalidationTest()">
+ <img class="before" src="../../../fast/images/resources/59.jpg">
<p> When painting an inline image, do not paint below its baseline unless its selected.
The invalidation rect should not extend outside the content rect of the image. </p>
</body>

Powered by Google App Engine
This is Rietveld 408576698