Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / animated-gif.html
blob235c6590f4cc79a75a27f2e5b6100c608743b04f
1 <!doctype HTML>
2 <body>
3 <div style="height: 2000px; width: 2000px;">
4 <img id="targetImage">
5 </div>
6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
7 <script>
8 window.testIsAsync = true;
10 function repaintTest() {
11 window.internals.advanceImageAnimation(targetImage);
12 requestAnimationFrame(function() {
13 finishRepaintTest();
14 });
17 function targetImageOnload() {
18 window.internals.startTrackingRepaints(document);
19 runRepaintTest();
22 window.onload = function() {
23 targetImage.onload = targetImageOnload;
24 targetImage.src="../../fast/backgrounds/resources/red-green-animated.gif";
26 </script>