| Index: LayoutTests/paint/invalidation/spv2/obscured-background-no-repaint.html
|
| diff --git a/LayoutTests/fast/repaint/obscured-background-no-repaint.html b/LayoutTests/paint/invalidation/spv2/obscured-background-no-repaint.html
|
| similarity index 60%
|
| copy from LayoutTests/fast/repaint/obscured-background-no-repaint.html
|
| copy to LayoutTests/paint/invalidation/spv2/obscured-background-no-repaint.html
|
| index c3157a55f2c8d1fd016db8c00019bbc171110295..4b18cfb25f1272eccc9e4f4cbebcf6c91388b3ce 100644
|
| --- a/LayoutTests/fast/repaint/obscured-background-no-repaint.html
|
| +++ b/LayoutTests/paint/invalidation/spv2/obscured-background-no-repaint.html
|
| @@ -1,14 +1,15 @@
|
| +<!-- Based on fast/repaint/obscured-background-no-repaint.html -->
|
| <html>
|
| <head>
|
| -<script src="../../resources/run-after-layout-and-paint.js"></script>
|
| -<script src="resources/text-based-repaint.js"></script>
|
| +<script src="../../../fast/repaint/../../resources/run-after-layout-and-paint.js"></script>
|
| +<script src="resources/paint-invalidation-test.js"></script>
|
| <style type="text/css">
|
| #test1 div {
|
| height: 100px;
|
| width: 100px;
|
| }
|
| #test1 .parent {
|
| - background-image: url(resources/animated.gif)
|
| + background-image: url(../../../fast/repaint/resources/animated.gif)
|
| }
|
| #test1 .child {
|
| background-color: green;
|
| @@ -18,7 +19,7 @@
|
| position: relative;
|
| height: 100px;
|
| width: 100px;
|
| - background-image: url(resources/animated.gif);
|
| + background-image: url(../../../fast/repaint/resources/animated.gif);
|
| background-repeat: no-repeat;
|
| background-position: center;
|
| }
|
| @@ -32,7 +33,7 @@
|
| width: 50px;
|
| }
|
| #test3 img {
|
| - background-image: url(resources/animated.gif)
|
| + background-image: url(../../../fast/repaint/resources/animated.gif)
|
| }
|
| #test4 .parent {
|
| position: relative;
|
| @@ -41,17 +42,21 @@
|
| background-color: red;
|
| background-repeat: no-repeat;
|
| background-position: center;
|
| - background-image: url(resources/animated.gif)
|
| + background-image: url(../../../fast/repaint/resources/animated.gif)
|
| }
|
| </style>
|
| <script>
|
| // Test that obscured animated gif does not trigger repaints.
|
| - if (window.testRunner)
|
| + if (window.testRunner) {
|
| testRunner.waitUntilDone();
|
| + testRunner.dumpAsText();
|
| + }
|
| window.testIsAsync = true;
|
| - function repaintTest()
|
| + window.expectedPaintInvalidationObjects = [
|
| + ];
|
| + function paintInvalidationTest()
|
| {
|
| - runAfterLayoutAndPaint(finishRepaintTest);
|
| + runAfterLayoutAndPaint(finishPaintInvalidationTest);
|
| }
|
|
|
| function start() {
|
| @@ -59,8 +64,8 @@
|
| return;
|
|
|
| var img = new Image();
|
| - img.onload = runRepaintTest;
|
| - img.src = "resources/animated.gif";
|
| + img.onload = runPaintInvalidationTest;
|
| + img.src = "../../../fast/repaint/resources/animated.gif";
|
| }
|
| </script>
|
| </head>
|
| @@ -78,14 +83,14 @@
|
| </div>
|
| </div>
|
| <div id="test3">
|
| - <img src="resources/apple.jpg">
|
| + <img src="../../../fast/repaint/resources/apple.jpg">
|
| </div>
|
| <div id="test4">
|
| <div class="parent">
|
| <a>
|
| <div></div>
|
| <div>
|
| - <img src="resources/apple.jpg">
|
| + <img src="../../../fast/repaint/resources/apple.jpg">
|
| </div>
|
| </a>
|
| </div>
|
|
|