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

Unified Diff: PerformanceTests/Layout/subtree-detaching.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/subtree-detaching.html
diff --git a/PerformanceTests/Layout/subtree-detaching.html b/PerformanceTests/Layout/subtree-detaching.html
index 3805f5e236cd7035e4436c8a53f21cc81ba43677..f705c30eac31f97559bc429797b169b8c882aa4e 100644
--- a/PerformanceTests/Layout/subtree-detaching.html
+++ b/PerformanceTests/Layout/subtree-detaching.html
@@ -19,8 +19,7 @@ function buildTree()
function setup() {
wrapper.style.display = "block";
- // Force a layout so that everything is up-to-date.
- wrapper.offsetTop;
+ PerfTestRunner.forceLayoutOrFullFrame();
}
function runTest() {
@@ -29,7 +28,7 @@ function runTest() {
var now = PerfTestRunner.now();
wrapper.style.display = "none";
- wrapper.offsetTop;
+ PerfTestRunner.forceLayoutOrFullFrame();
return PerfTestRunner.now() - now;
}
« no previous file with comments | « PerformanceTests/Layout/resources/large-table-with-collapsed-borders.js ('k') | PerformanceTests/SVG/SvgCubics.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698