| Index: third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-offscreen.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-offscreen.html b/third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-offscreen.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d827cfa284944ec7b288f72862eeac1cd37bbc38
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-offscreen.html
|
| @@ -0,0 +1,32 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/text-based-repaint.js"></script>
|
| +<script>
|
| +window.testIsAsync = true;
|
| +
|
| +// Disable under-invalidation checking because the "under-invalidation" of
|
| +// offscreen SVG animation is intentional.
|
| +if (window.internals)
|
| + internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false;
|
| +
|
| +function repaintTest() {
|
| + if (window.internals)
|
| + internals.advanceImageAnimation(targetImage);
|
| + requestAnimationFrame(function() {
|
| + finishRepaintTest();
|
| + });
|
| +}
|
| +
|
| +function targetImageOnload() {
|
| + // Scroll targetImage offscreen.
|
| + window.scrollTo(0, 1000);
|
| + runRepaintTest();
|
| +}
|
| +
|
| +onload = function() {
|
| + targetImage.onload = targetImageOnload;
|
| + targetImage.src = "../../../svg/as-image/resources/animated-rect-fixed-size-2.svg";
|
| +}
|
| +</script>
|
| +<div style="height: 2000px; width: 2000px;">
|
| + <img id="targetImage">
|
| +</div>
|
|
|