OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 3 <script> |
4 function repaintTest() | 4 function repaintTest() |
5 { | 5 { |
6 document.getElementById('div').style.width = '400px'; | 6 document.getElementById('div').style.width = '400px'; |
7 } | 7 } |
8 window.onload = runRepaintAndPixelTest; | 8 window.onload = runRepaintAndPixelTest; |
9 </script> | 9 </script> |
10 <style> | 10 <style> |
11 body { | 11 body { |
12 margin: 0; | 12 margin: 0; |
13 } | 13 } |
14 #div { | 14 #div { |
15 position: absolute; | 15 position: absolute; |
16 top: 100px; | 16 top: 100px; |
17 left: 100px; | 17 left: 100px; |
18 width: 200px; | 18 width: 200px; |
19 height: 200px; | 19 height: 200px; |
20 border: green 10px solid; | 20 border: green 10px solid; |
21 } | 21 } |
22 </style> | 22 </style> |
23 <div> | 23 <div> |
24 Tests repaint when a box with border is resized. | 24 Tests repaint when a box with border is resized. |
25 Passes if the result paint rects cover all changed part, | 25 Passes if the result paint rects cover all changed part, |
26 the new border is correctly drawn and there is no residue of the old border. | 26 the new border is correctly drawn and there is no residue of the old border. |
27 </div> | 27 </div> |
28 <div id="div"></div> | 28 <div id="div"></div> |
OLD | NEW |