3 <script>jsTestIsAsync = true;</script>
4 <script src="../../resources/js-test.js"></script>
5 <style type="text/css">
11 background-image: url(resources/animated.gif)
14 background-color: green;
21 background-image: url(resources/animated.gif);
22 background-repeat: no-repeat;
23 background-position: center;
27 background-color: green;
35 background-image: url(resources/animated.gif)
41 background-color: red;
42 background-repeat: no-repeat;
43 background-position: center;
44 background-image: url(resources/animated.gif)
48 description("Test that obscured animated gif does not trigger repaints. This test requires DRT.");
49 function startTrackingRepaints()
51 document.body.offsetTop;
52 window.internals.startTrackingRepaints(document);
54 setTimeout(logRepaints, 200);
57 function logRepaints()
59 repaintRects = window.internals.repaintRectsAsText(document);
60 window.internals.stopTrackingRepaints(document);
62 shouldBeEqualToString("repaintRects", "");
68 if (!window.testRunner || !window.internals)
71 var img = new Image();
72 img.onload = startTrackingRepaints;
73 img.src = "resources/animated.gif";
77 <body onload="start()">
91 <img src="resources/apple.jpg">
98 <img src="resources/apple.jpg">