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

Unified Diff: PerformanceTests/Interactive/resources/window-resize.js

Issue 675983004: Allow performance tests to test full rendering performance (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: s/forceFullLayout/forceLayout/g Created 6 years, 2 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: PerformanceTests/Interactive/resources/window-resize.js
diff --git a/PerformanceTests/Interactive/resources/window-resize.js b/PerformanceTests/Interactive/resources/window-resize.js
index a984b1337db89bc74ab4946c21b695feef593064..f7a93aaf2977bc691ff7f5046b99d9221d6ac394 100644
--- a/PerformanceTests/Interactive/resources/window-resize.js
+++ b/PerformanceTests/Interactive/resources/window-resize.js
@@ -7,9 +7,9 @@ if (window.testRunner)
var run = function() {
window.resizeTo(portrait.width, portrait.height);
- document.body.offsetTop;
+ PerfTestRunner.forceLayout();
window.resizeTo(landscape.width, landscape.height);
- document.body.offsetTop;
+ PerfTestRunner.forceLayout();
};
function onTestDone() {

Powered by Google App Engine
This is Rietveld 408576698