blob: 69ca75766345c31c105abb6da78771474f97f2b2 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script src="../resources/text-based-repaint.js"></script>
<input id="target"size="5" value="test test test">
<script>
window.testIsAsync = true;
onload = runRepaintAndPixelTest;
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(false);
function repaintTest() {
target.focus();
target.scrollLeft = 5;
runAfterLayoutAndPaint(function() {
target.setSelectionRange(5, 10);
finishRepaintTest();
});
}
</script>