| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/ahem.js"></script> | 2 <script src="../../resources/ahem.js"></script> |
| 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 4 <script src="../../resources/run-after-layout-and-paint.js"></script> | 4 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 5 <script src="resources/selection.js"></script> | 5 <script src="resources/selection.js"></script> |
| 6 <script> | 6 <script> |
| 7 // Selects two lines with top one ending in a line break and expects a newline | 7 // Selects two lines with top one ending in a line break and expects a newline |
| 8 // to be represented. | 8 // to be represented. |
| 9 function repaintTest() { | 9 function repaintTest() { |
| 10 selectRange(container, 0, container, 3); | 10 selectRange(container, 0, container, 3); |
| 11 }; | 11 }; |
| 12 window.onload = runRepaintTest; | 12 window.onload = runRepaintAndPixelTest; |
| 13 </script> | 13 </script> |
| 14 <style> | 14 <style> |
| 15 div { | 15 div { |
| 16 font-family: Ahem; | 16 font-family: Ahem; |
| 17 } | 17 } |
| 18 </style> | 18 </style> |
| 19 <div id="container"> | 19 <div id="container"> |
| 20 a<br>b | 20 a<br>b |
| 21 </div> | 21 </div> |
| OLD | NEW |