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

Unified Diff: PerformanceTests/Layout/fixed-grid-lots-of-data.html

Issue 675983004: Allow performance tests to test full rendering performance (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: layoutOrFullyRender -> forceLayoutOrFullFrame Created 6 years, 1 month 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: PerformanceTests/Layout/fixed-grid-lots-of-data.html
diff --git a/PerformanceTests/Layout/fixed-grid-lots-of-data.html b/PerformanceTests/Layout/fixed-grid-lots-of-data.html
index 5e0c53192ecc1efde98c33c5891ff5a045eaabe2..7fc6a46f46b86a45827508076de8f240a84caf8c 100644
--- a/PerformanceTests/Layout/fixed-grid-lots-of-data.html
+++ b/PerformanceTests/Layout/fixed-grid-lots-of-data.html
@@ -21,14 +21,14 @@ body {
<script src="../resources/runner.js"></script>
<script>
function startTest() {
- document.body.offsetHeight;
+ PerfTestRunner.forceLayoutOrFullFrame();
var index = 0;
PerfTestRunner.measureRunsPerSecond({
description: "Measures performance of layout on a page using CSS grid layout (fixed).",
run: function() {
document.body.style.width = ++index % 2 ? "99%" : "98%";
- document.body.offsetHeight;
+ PerfTestRunner.forceLayoutOrFullFrame();
}
});
}
« no previous file with comments | « PerformanceTests/Layout/chapter-reflow-twice.html ('k') | PerformanceTests/Layout/flexbox-column-nowrap.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698