<!DOCTYPE html> | |
<script src="resources/text-based-repaint.js" type="text/javascript"></script> | |
<script> | |
function repaintTest() | |
{ | |
input1.value = "PASSED"; | |
// Force a layout to clear the layout root. | |
input1.offsetTop; | |
input2.value = "PASSED"; | |
} | |
window.addEventListener("load", runRepaintAndPixelTest, false); | |
</script> | |
<body> | |
<input id="input1" value="FAILED"></input> | |
<input id="input2" value="FAILED"></input> | |
</body> |