| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js" type="text/javascript"></script> | 2 <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
| 3 <script> | 3 <script> |
| 4 function repaintTest() | 4 function repaintTest() |
| 5 { | 5 { |
| 6 input1.value = "PASSED"; | 6 input1.value = "PASSED"; |
| 7 // Force a layout to clear the layout root. | 7 // Force a layout to clear the layout root. |
| 8 input1.offsetTop; | 8 input1.offsetTop; |
| 9 | 9 |
| 10 input2.value = "PASSED"; | 10 input2.value = "PASSED"; |
| 11 } | 11 } |
| 12 | 12 |
| 13 window.addEventListener("load", runRepaintAndPixelTest, false); | 13 window.addEventListener("load", runRepaintAndPixelTest, false); |
| 14 </script> | 14 </script> |
| 15 <body> | 15 <body> |
| 16 <input id="input1" value="FAILED"></input> | 16 <input id="input1" value="FAILED"></input> |
| 17 <input id="input2" value="FAILED"></input> | 17 <input id="input2" value="FAILED"></input> |
| 18 </body> | 18 </body> |
| OLD | NEW |