Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: third_party/WebKit/PerformanceTests/Layout/long-line-nowrap-spans-collapse.html

Issue 2323213002: Reduce the amount of text to perf test for long-line-nowrap-collapse (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/PerformanceTests/Layout/long-line-nowrap-collapse.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 = 1000; 18 test.lineCount = 100;
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>
OLDNEW
« no previous file with comments | « third_party/WebKit/PerformanceTests/Layout/long-line-nowrap-collapse.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698