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

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

Issue 2284113003: Add performance tests for long words/lines (Closed)
Patch Set: eae review Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/PerformanceTests/Layout/long-line-nowrap-spans-collapse.html
diff --git a/third_party/WebKit/PerformanceTests/Layout/long-line-nowrap-spans-collapse.html b/third_party/WebKit/PerformanceTests/Layout/long-line-nowrap-spans-collapse.html
new file mode 100644
index 0000000000000000000000000000000000000000..a7cbe696559ee82cb0b15b5a569a628276f3c385
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Layout/long-line-nowrap-spans-collapse.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../resources/runner.js"></script>
+<script src="resources/line-layout-perf-test.js"></script>
+<style>
+#container {
+ width: 400px;
+ white-space: nowrap;
+}
+</style>
+<body onload="run()">
+<div id="container"></div>
+<script>
+'use strict';
+
+function run() {
+ var test = new LineLayoutPerfTest(container);
+ test.spanCount = 10;
+ test.lineCount = 80;
+ test.wordSeparator = ' '; // Make all word separators collapsible.
+ test.run('Measures performance of "white-space: nowrap" with multiple spans and collapsible spaces.');
+}
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698