OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../resources/runner.js"></script> | 2 <script src="../resources/runner.js"></script> |
3 <pre id="log"></pre> | 3 <pre id="log"></pre> |
4 <style>td { border: 1px solid blue }</style> | 4 <style>td { border: 1px solid blue }</style> |
5 <script> | 5 <script> |
6 // We discard the first iteration to avoid a cold outlier. | 6 // We discard the first iteration to avoid a cold outlier. |
7 var iterations = 11; | 7 var iterations = 11; |
8 var results = []; | 8 var results = []; |
9 var previousFrameTime = -1; | 9 var previousFrameTime = -1; |
10 var now = function(){ | 10 var now = function(){ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 ix++; | 54 ix++; |
55 iy++; | 55 iy++; |
56 } | 56 } |
57 | 57 |
58 if (window.testRunner) | 58 if (window.testRunner) |
59 testRunner.waitUntilDone(); | 59 testRunner.waitUntilDone(); |
60 | 60 |
61 // Start the test after two frame to ensure we have set-up, laid out and painted
the table. | 61 // Start the test after two frame to ensure we have set-up, laid out and painted
the table. |
62 window.requestAnimationFrame(function() { window.requestAnimationFrame(toggleBac
kgroundColor) }); | 62 window.requestAnimationFrame(function() { window.requestAnimationFrame(toggleBac
kgroundColor) }); |
63 </script> | 63 </script> |
OLD | NEW |