| Index: third_party/WebKit/LayoutTests/paint/invalidation/repaint-subrect-grid.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/repaint-subrect-grid.html b/third_party/WebKit/LayoutTests/paint/invalidation/repaint-subrect-grid.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2a76c560a7a5f98fd810da10aa1501477f2a4703
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/repaint-subrect-grid.html
|
| @@ -0,0 +1,54 @@
|
| +<html>
|
| +<head>
|
| +<script src="resources/text-based-repaint.js"></script>
|
| +</head>
|
| +<body style="background: url(../../fast/images/resources/grid-large.png) no-repeat; background-size: 55px 55px;">
|
| + <div id="mask" style="position: absolute; top: -100px; left: -100px;
|
| + background-color: blue; width: 18.33px; height: 18.33px;"></div>
|
| + <script>
|
| + var pos = [
|
| + // First row.
|
| + [0, 0],
|
| + [0, 18.33],
|
| + [0, 36.67],
|
| +
|
| + // Second row.
|
| + [18.33, -9.17],
|
| + [18.33, 9.17],
|
| + [18.33, 27.5],
|
| + [18.33, 45.83],
|
| +
|
| + // Third row.
|
| + [36.67, 0],
|
| + [36.67, 18.33],
|
| + [36.67, 36.67],
|
| +
|
| + // Disappear.
|
| + [-100, -100],
|
| + ];
|
| +
|
| + var currentPos = 0;
|
| +
|
| + function repaintTest()
|
| + {
|
| + if (currentPos >= pos.length)
|
| + return;
|
| +
|
| + var mask = document.getElementById("mask");
|
| + mask.style.top = pos[currentPos][0];
|
| + mask.style.left = pos[currentPos][1];
|
| + ++currentPos;
|
| +
|
| + if (window.internals)
|
| + internals.forceCompositingUpdate(document);
|
| +
|
| + if (window.testRunner)
|
| + repaintTest();
|
| + else
|
| + setTimeout("repaintTest();", 1000);
|
| + }
|
| +
|
| + onload = runRepaintAndPixelTest;
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|