OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <!-- | 3 <!-- |
4 This test checks that repaint testing works with composited layers. | 4 This test checks that repaint testing works with composited layers. |
5 --> | 5 --> |
6 | 6 |
7 <html> | 7 <html> |
8 <head> | 8 <head> |
9 <style type="text/css"> | 9 <style type="text/css"> |
10 #parent { | 10 #parent { |
(...skipping 19 matching lines...) Expand all Loading... |
30 if (!window.testRunner) { | 30 if (!window.testRunner) { |
31 alert('This test requires testRunner to run!'); | 31 alert('This test requires testRunner to run!'); |
32 return; | 32 return; |
33 } | 33 } |
34 | 34 |
35 if (!window.internals) { | 35 if (!window.internals) { |
36 alert('This test requires window.interals to run!'); | 36 alert('This test requires window.interals to run!'); |
37 return; | 37 return; |
38 } | 38 } |
39 | 39 |
40 testRunner.dumpAsText(false); | 40 testRunner.dumpAsText(); |
41 | 41 |
42 var parent = document.getElementById('parent'); | 42 var parent = document.getElementById('parent'); |
43 var child = document.getElementById('child'); | 43 var child = document.getElementById('child'); |
44 | 44 |
45 // Ensure that we've recalculated style before starting repaint | 45 // Ensure that we've recalculated style before starting repaint |
46 // tracking (we don't want our lists of invalidated rects to be | 46 // tracking (we don't want our lists of invalidated rects to be |
47 // polluted). | 47 // polluted). |
48 document.body.offsetTop; | 48 document.body.offsetTop; |
49 window.internals.startTrackingRepaints(document); | 49 window.internals.startTrackingRepaints(document); |
50 | 50 |
(...skipping 14 matching lines...) Expand all Loading... |
65 }); | 65 }); |
66 </script> | 66 </script> |
67 </head> | 67 </head> |
68 <body> | 68 <body> |
69 <pre id="text"></pre> | 69 <pre id="text"></pre> |
70 <div id="parent"> | 70 <div id="parent"> |
71 <div id="child"></div> | 71 <div id="child"></div> |
72 </div> | 72 </div> |
73 </body> | 73 </body> |
74 </html> | 74 </html> |
OLD | NEW |