| Index: LayoutTests/paint/invalidation/spv2/child-of-sub-pixel-offset-composited-layer.html
|
| diff --git a/LayoutTests/fast/repaint/child-of-sub-pixel-offset-composited-layer.html b/LayoutTests/paint/invalidation/spv2/child-of-sub-pixel-offset-composited-layer.html
|
| similarity index 64%
|
| copy from LayoutTests/fast/repaint/child-of-sub-pixel-offset-composited-layer.html
|
| copy to LayoutTests/paint/invalidation/spv2/child-of-sub-pixel-offset-composited-layer.html
|
| index b9fae83d26381b31ba9b05255ad17f0858eee943..4c5bd0388929fd5bc16f58235f0e7968efe218fc 100644
|
| --- a/LayoutTests/fast/repaint/child-of-sub-pixel-offset-composited-layer.html
|
| +++ b/LayoutTests/paint/invalidation/spv2/child-of-sub-pixel-offset-composited-layer.html
|
| @@ -1,3 +1,4 @@
|
| +<!-- Based on fast/repaint/child-of-sub-pixel-offset-composited-layer.html -->
|
| <!DOCTYPE html>
|
| <html>
|
| <head>
|
| @@ -22,9 +23,9 @@
|
| border-color: green;
|
| }
|
| </style>
|
| -<script src="resources/text-based-repaint.js" type="text/javascript"></script>
|
| +<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
|
| </head>
|
| -<body onload="runRepaintTest();">
|
| +<body onload="runPaintInvalidationTest();">
|
| <div class="container">
|
| <div id="target">
|
| </div>
|
| @@ -32,9 +33,10 @@
|
| <script>
|
| // This test ensures that children of a composited element with a sub-pixel offset are properly repainted.
|
| // The box should have a fully green border.
|
| -if (window.testRunner)
|
| - testRunner.dumpAsTextWithPixelResults();
|
| -function repaintTest() {
|
| +window.expectedPaintInvalidationObjects = [
|
| + "LayoutBlockFlow (positioned) DIV id='target' class='green'",
|
| +];
|
| +function paintInvalidationTest() {
|
| var target = document.getElementById('target');
|
| target.classList.add('green');
|
| }
|
|
|