| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../resources/runner.js"></script> | 2 <script src="../resources/runner.js"></script> |
| 3 <script src="resources/line-layout-perf-test.js"></script> | 3 <script src="resources/line-layout-perf-test.js"></script> |
| 4 <style> | 4 <style> |
| 5 #container { | 5 #container { |
| 6 width: 400px; | 6 width: 400px; |
| 7 white-space: nowrap; | 7 white-space: nowrap; |
| 8 } | 8 } |
| 9 </style> | 9 </style> |
| 10 <body onload="run()"> | 10 <body onload="run()"> |
| 11 <div id="container"></div> | 11 <div id="container"></div> |
| 12 <script> | 12 <script> |
| 13 'use strict'; | 13 'use strict'; |
| 14 | 14 |
| 15 function run() { | 15 function run() { |
| 16 var test = new LineLayoutPerfTest(container); | 16 var test = new LineLayoutPerfTest(container); |
| 17 test.spanCount = 10; | 17 test.spanCount = 10; |
| 18 test.lineCount = 80; | 18 test.lineCount = 1000; |
| 19 test.wordSeparator = ' '; // Make all word separators collapsible. | 19 test.wordSeparator = ' '; // Make all word separators collapsible. |
| 20 test.run('Measures performance of "white-space: nowrap" with multiple spans an
d collapsible spaces.'); | 20 test.run('Measures performance of "white-space: nowrap" with multiple spans an
d collapsible spaces.'); |
| 21 } | 21 } |
| 22 </script> | 22 </script> |
| 23 </body> | 23 </body> |
| OLD | NEW |