OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script>jsTestIsAsync = true;</script> | 3 <script>jsTestIsAsync = true;</script> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 | 5 |
6 <style> | 6 <style> |
7 #outer { | 7 #outer { |
8 padding-top: 200px; | 8 padding-top: 200px; |
9 /* background-size is implicitly set to initial via the background shorthand
. */ | 9 /* background-size is implicitly set to initial via the background shorthand
. */ |
10 background:-webkit-gradient( | 10 background:-webkit-gradient( |
(...skipping 15 matching lines...) Expand all Loading... |
26 function start() { | 26 function start() { |
27 window.setTimeout(function() { | 27 window.setTimeout(function() { |
28 document.getElementById('inner').style.height = 300 + 'px'; | 28 document.getElementById('inner').style.height = 300 + 'px'; |
29 window.setTimeout(logRepaints, 200); | 29 window.setTimeout(logRepaints, 200); |
30 }, 0); | 30 }, 0); |
31 | 31 |
32 if (!window.testRunner || !window.internals) | 32 if (!window.testRunner || !window.internals) |
33 return; | 33 return; |
34 | 34 |
35 window.internals.startTrackingRepaints(document); | 35 window.internals.startTrackingRepaints(document); |
36 window.testRunner.display(); | 36 var dummy = document.body.offsetTop; |
37 } | 37 } |
38 | 38 |
39 function logRepaints() { | 39 function logRepaints() { |
40 if (!window.internals) | 40 if (!window.internals) |
41 return; | 41 return; |
42 | 42 |
43 repaintRects = window.internals.repaintRectsAsText(document); | 43 repaintRects = window.internals.repaintRectsAsText(document); |
44 window.internals.stopTrackingRepaints(document); | 44 window.internals.stopTrackingRepaints(document); |
45 shouldNotBe("repaintRects.indexOf('500')", "-1"); | 45 shouldNotBe("repaintRects.indexOf('500')", "-1"); |
46 finishJSTest(); | 46 finishJSTest(); |
47 } | 47 } |
48 </script> | 48 </script> |
49 </head> | 49 </head> |
50 | 50 |
51 <body onload='start();'> | 51 <body onload='start();'> |
52 <div id='outer'> | 52 <div id='outer'> |
53 <div id='inner'> | 53 <div id='inner'> |
54 </div> | 54 </div> |
55 </div> | 55 </div> |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |