| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script>jsTestIsAsync = true;</script> | 3 <script>jsTestIsAsync = true;</script> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script src="../../resources/run-after-display.js"></script> |
| 5 <style type="text/css"> | 6 <style type="text/css"> |
| 6 #test1 div { | 7 #test1 div { |
| 7 height: 100px; | 8 height: 100px; |
| 8 width: 100px; | 9 width: 100px; |
| 9 } | 10 } |
| 10 #test1 .parent { | 11 #test1 .parent { |
| 11 background-image: url(resources/animated.gif) | 12 background-image: url(resources/animated.gif) |
| 12 } | 13 } |
| 13 #test1 .child { | 14 #test1 .child { |
| 14 background-color: green; | 15 background-color: green; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 43 background-position: center; | 44 background-position: center; |
| 44 background-image: url(resources/animated.gif) | 45 background-image: url(resources/animated.gif) |
| 45 } | 46 } |
| 46 </style> | 47 </style> |
| 47 <script> | 48 <script> |
| 48 description("Test that obscured animated gif does not trigger repaints. This
test requires DRT."); | 49 description("Test that obscured animated gif does not trigger repaints. This
test requires DRT."); |
| 49 function startTrackingRepaints() | 50 function startTrackingRepaints() |
| 50 { | 51 { |
| 51 document.body.offsetTop; | 52 document.body.offsetTop; |
| 52 window.internals.startTrackingRepaints(document); | 53 window.internals.startTrackingRepaints(document); |
| 53 testRunner.display(); | 54 runAfterDisplay(logRepaints); |
| 54 setTimeout(logRepaints, 200); | |
| 55 } | 55 } |
| 56 | 56 |
| 57 function logRepaints() | 57 function logRepaints() { |
| 58 { | |
| 59 repaintRects = window.internals.repaintRectsAsText(document); | 58 repaintRects = window.internals.repaintRectsAsText(document); |
| 60 window.internals.stopTrackingRepaints(document); | 59 window.internals.stopTrackingRepaints(document); |
| 61 | 60 |
| 62 shouldBeEqualToString("repaintRects", ""); | 61 shouldBeEqualToString("repaintRects", ""); |
| 63 | 62 |
| 64 finishJSTest(); | 63 finishJSTest(); |
| 65 } | 64 } |
| 66 | 65 |
| 67 function start() { | 66 function start() { |
| 68 if (!window.testRunner || !window.internals) | 67 if (!window.testRunner || !window.internals) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 95 <a> | 94 <a> |
| 96 <div></div> | 95 <div></div> |
| 97 <div> | 96 <div> |
| 98 <img src="resources/apple.jpg"> | 97 <img src="resources/apple.jpg"> |
| 99 </div> | 98 </div> |
| 100 </a> | 99 </a> |
| 101 </div> | 100 </div> |
| 102 </div> | 101 </div> |
| 103 </body> | 102 </body> |
| 104 </html> | 103 </html> |
| OLD | NEW |