blob: 4864171d06e0df1ab887cc67c52120f09b85b307 [file] [log] [blame]
<!DOCTYPE html>
<head>
<title>This tests when input=range is block we issue correct repaint rects</title>
<script>jsTestIsAsync = true;</script>
<script src="../../resources/js-test-pre.js"></script>
<style>
input[type="range"] {
display: block;
width: 500px;
}
</style>
</head>
<body>
<input id=moveme type=range>
<script>
window.internals.startTrackingRepaints();
document.getElementById("moveme").value = 100;
document.body.offsetHeight;
function repaintTest() {
if (window.internals) {
repaintRects = window.internals.repaintRectsAsText();
window.internals.stopTrackingRepaints();
shouldNotBe("repaintRects.indexOf('493 8 17 17')", "-1");
}
finishJSTest();
}
setTimeout(repaintTest, 0);
</script>
</body>
<script src="../../resources/js-test-post.js"></script>
</html>