| <script>jsTestIsAsync = true;</script> |
| <script src="../../resources/js-test-pre.js"></script> |
| window.onload = function() { |
| window.internals.startTrackingRepaints(); |
| document.querySelector('#scroll_inner').style.left = "100px"; |
| if (!window.testRunner || !window.internals) |
| shouldBe("window.internals.repaintRectsAsText().indexOf('8 541 180 18')", "-1"); |
| window.internals.stopTrackingRepaints(); |
| #innocent_repaint_victim { |
| <div id="scroll_container"> |
| this is scrolling and should be repainted. |
| <!-- padding 512px so we get to the next tile --> |
| <div style="height: 512px;"></div> |
| <div id="innocent_repaint_victim"> |
| this should not be repainting |
| <pre id="repaints"></pre> |
| <script src="../../resources/js-test-post.js"></script> |