| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/runner.js"></script> | 4 <script src="../resources/runner.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body style="overflow-y: scroll"> | 6 <body style="overflow-y: scroll"> |
| 7 | 7 |
| 8 <div id="flexbox" style="width: 300px; flex-wrap: wrap; justify-content: center;
align-items: center"> | 8 <div id="flexbox" style="width: 300px; flex-wrap: wrap; justify-content: center;
align-items: center"> |
| 9 <div style="flex: 1 120px">1</div> | 9 <div style="flex: 1 120px">1</div> |
| 10 <div style="flex: 2 auto">2<br>2</div> | 10 <div style="flex: 2 auto">2<br>2</div> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 </body> | 21 </body> |
| 22 <script> | 22 <script> |
| 23 function runTest() | 23 function runTest() |
| 24 { | 24 { |
| 25 document.getElementById("flexbox").style.display = 'flex'; | 25 document.getElementById("flexbox").style.display = 'flex'; |
| 26 document.body.clientHeight; | 26 document.body.clientHeight; |
| 27 document.getElementById("flexbox").style.display = ''; | 27 document.getElementById("flexbox").style.display = ''; |
| 28 document.body.clientHeight; | 28 document.body.clientHeight; |
| 29 } | 29 } |
| 30 | 30 |
| 31 PerfTestRunner.measureRunsPerSecond({run: runTest, done:function() { | 31 PerfTestRunner.measureRunsPerSecond({ |
| 32 document.getElementById("flexbox").style.display = 'none'; | 32 description: "Measures performance of flexbox with wrapping (row).", |
| 33 }}); | 33 run: runTest, |
| 34 done: function() { |
| 35 document.getElementById("flexbox").style.display = 'none'; |
| 36 } |
| 37 }); |
| 34 </script> | 38 </script> |
| 35 </html> | 39 </html> |
| OLD | NEW |