| 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 <style> | 5 <style> |
| 6 | 6 |
| 7 #container { | 7 #container { |
| 8 display: flex; | 8 display: flex; |
| 9 flex-wrap: wrap; | 9 flex-wrap: wrap; |
| 10 } | 10 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 function runTest() | 53 function runTest() |
| 54 { | 54 { |
| 55 var inlineBlocks = document.getElementsByClassName("inlineBlock"); | 55 var inlineBlocks = document.getElementsByClassName("inlineBlock"); |
| 56 for (var i = inlineBlocks.length - 1; i >= 0; i--) { | 56 for (var i = inlineBlocks.length - 1; i >= 0; i--) { |
| 57 inlineBlocks[i].innerText = switcher ? " " : nbsp; | 57 inlineBlocks[i].innerText = switcher ? " " : nbsp; |
| 58 inlineBlocks[i].offsetTop; | 58 inlineBlocks[i].offsetTop; |
| 59 }; | 59 }; |
| 60 switcher = !switcher; | 60 switcher = !switcher; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 PerfTestRunner.measureRunsPerSecond({run: runTest }); | 63 PerfTestRunner.measureRunsPerSecond({ |
| 64 description: "Measures performance of flexbox containing many small elements
with wrapping (column).", |
| 65 run: runTest |
| 66 }); |
| 64 </script> | 67 </script> |
| 65 </html> | 68 </html> |
| OLD | NEW |