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

Unified Diff: PerformanceTests/Layout/multicol/tall-content-short-columns-realistic.html

Issue 1239783002: Multicol performance tests for tall content (so that we get (very) many columns). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
« no previous file with comments | « PerformanceTests/Layout/multicol/tall-content-short-columns.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/Layout/multicol/tall-content-short-columns-realistic.html
diff --git a/PerformanceTests/Layout/multicol/tall-content-short-columns-realistic.html b/PerformanceTests/Layout/multicol/tall-content-short-columns-realistic.html
new file mode 100644
index 0000000000000000000000000000000000000000..8ef07b2748e3fcdac83737c3ca8d07fadefbc781
--- /dev/null
+++ b/PerformanceTests/Layout/multicol/tall-content-short-columns-realistic.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<script src="../../resources/runner.js"></script>
+<body style="overflow:scroll;"> <!-- don't want auto scrollbars to affect the number of layout passes. -->
+ <pre id="log"></pre>
+ <div id="target" style="position:absolute; top:0; left:0; display:none; -webkit-columns:2; column-fill:auto; width:40em; height:40em;">
+ <div style="height:1000000px;">xxxxxxxxxx</div>
+ </div>
+ <script>
+ var target = document.getElementById("target");
+ var style = target.style;
+
+ function test() {
+ style.display = "block";
+ PerfTestRunner.forceLayoutOrFullFrame();
+
+ // Do some hit-testing.
+ document.caretRangeFromPoint(10, 10);
+
+ style.display = "none";
+ PerfTestRunner.forceLayoutOrFullFrame();
+ }
+
+ PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of multicol layout with many columns.",
+ run: test
+ });
+ </script>
+</body>
« no previous file with comments | « PerformanceTests/Layout/multicol/tall-content-short-columns.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698