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

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

Issue 2284113003: Add performance tests for long words/lines (Closed)
Patch Set: eae review 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/runner.js"></script>
3 <script src="resources/line-layout-perf-test.js"></script>
4 <style>
5 #container {
6 width: 400px;
7 white-space: nowrap;
8 }
9 </style>
10 <body onload="run()">
11 <div id="container"></div>
12 <script>
13 'use strict';
14
15 function run() {
16 var test = new LineLayoutPerfTest(container);
17 test.spanCount = 0;
18 test.lineCount = 800;
19 test.wordSeparator = ' '; // Make all word separators collapsible.
20 test.run('Measures performance of "white-space: nowrap" with collapsible space s.');
21 }
22 </script>
23 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698