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

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: PerfTestRunner.layoutOrFullyRender() 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..2b90e185c6444d281359a38687838fbfa1e96af9 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.layoutOrFullyRender();
}
function runTest() {
@@ -29,7 +28,7 @@ function runTest() {
var now = PerfTestRunner.now();
wrapper.style.display = "none";
- wrapper.offsetTop;
+ PerfTestRunner.layoutOrFullyRender();
return PerfTestRunner.now() - now;
}

Powered by Google App Engine
This is Rietveld 408576698