blob: 285d791255247b1a3657654c0aa5c7f3e8e24f16 [file] [log] [blame]
<html>
<head>
<script src="../../fast/repaint/resources/text-based-repaint.js" type="text/javascript"></script>
<script type="text/javascript">
window.testIsAsync = true;
// These svg files are animated automatically, so have flaky repaint rect
// output depending on when repaint rect capturing starts.
window.outputRepaintRects = false;
function repaintTest() {
if (!window.testRunner)
return;
// The animation lasts 100ms so skip 12 (12*1s/120=100ms) frames to be sure.
for (var i = 0; i < 12; i++)
window.internals.advanceImageAnimation(image);
window.requestAnimationFrame(function() {
finishRepaintTest();
});
}
</script>
<style type="text/css" media="screen">
img {
margin: 10px;
}
</style>
</head>
<body onload="runRepaintAndPixelTest()">
<p>Images should redraw correctly when SVG animation runs</p>
<img id="image" src="resources/animated-rect-fixed-size.svg">
</body>
</html>