| Index: third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html b/third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..151014385ac07d94491a87e776f4d626889e160b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html
|
| @@ -0,0 +1,28 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
|
| +<style>
|
| + div {
|
| + display: block;
|
| + width: 450px;
|
| + height: 100px;
|
| + color: red;
|
| + }
|
| + div:hover {
|
| + color: green;
|
| + text-decoration: underline;
|
| + }
|
| +</style>
|
| +
|
| +<!-- Ensure the optimization in https://src.chromium.org/viewvc/blink?view=rev&revision=152046 doesn't break. -->
|
| +<div id="div">
|
| +This test <img src="resources/bluesquare.png" width="10px" height="10px"> passes if <span>only</span> text is invalidated and <img src="resources/bluesquare.png" width="10px" height="10px"> no <img src="resources/bluesquare.png" width="10px" height="10px"> images.
|
| +</div>
|
| +
|
| +<script>
|
| +onload = runRepaintTest;
|
| +function repaintTest() {
|
| + if (window.eventSender);
|
| + eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + 5);
|
| + finishRepaintTest();
|
| +}
|
| +</script>
|
|
|