| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../repaint/resources/text-based-repaint.js"></script> | 2 <script src="../repaint/resources/text-based-repaint.js"></script> |
| 3 <script> | 3 <script> |
| 4 function repaintTest() | 4 function repaintTest() |
| 5 { | 5 { |
| 6 document.getElementById('target1').style.width = '150px'; | 6 document.getElementById('target1').style.width = '150px'; |
| 7 document.getElementById('target2').style.width = '50px'; | 7 document.getElementById('target2').style.width = '50px'; |
| 8 document.getElementById('target3').style.height = '150px'; | 8 document.getElementById('target3').style.height = '150px'; |
| 9 document.getElementById('target4').style.height = '50px'; | 9 document.getElementById('target4').style.height = '50px'; |
| 10 } | 10 } |
| 11 window.onload = runRepaintTest; | 11 window.onload = runRepaintAndPixelTest; |
| 12 </script> | 12 </script> |
| 13 <style> | 13 <style> |
| 14 body { | 14 body { |
| 15 margin: 0; | 15 margin: 0; |
| 16 } | 16 } |
| 17 div { | 17 div { |
| 18 position: absolute; | 18 position: absolute; |
| 19 width: 100px; | 19 width: 100px; |
| 20 height: 100px; | 20 height: 100px; |
| 21 background-color: green; | 21 background-color: green; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 36 } | 36 } |
| 37 #target4 { | 37 #target4 { |
| 38 top: 300px; | 38 top: 300px; |
| 39 left: 300px; | 39 left: 300px; |
| 40 } | 40 } |
| 41 </style> | 41 </style> |
| 42 <div id="target1"></div> | 42 <div id="target1"></div> |
| 43 <div id="target2"></div> | 43 <div id="target2"></div> |
| 44 <div id="target3"></div> | 44 <div id="target3"></div> |
| 45 <div id="target4"></div> | 45 <div id="target4"></div> |
| OLD | NEW |