| 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>
|
|
|