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

Unified Diff: PerformanceTests/Interactive/SelectAll.html

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/SelectAll.html
diff --git a/PerformanceTests/Interactive/SelectAll.html b/PerformanceTests/Interactive/SelectAll.html
index 1e89ab94c947a599151777fc129b8d0575d2b585..e160ba9c3e8e4db8e43ff1431ca659130fd63f3f 100644
--- a/PerformanceTests/Interactive/SelectAll.html
+++ b/PerformanceTests/Interactive/SelectAll.html
@@ -15,12 +15,12 @@ PerfTestRunner.prepareToMeasureValuesAsync({
function runTest() {
var iframe = document.querySelector('iframe');
iframe.contentWindow.getSelection().removeAllRanges();
- iframe.contentDocument.body.offsetTop;
+ PerfTestRunner.forceLayout(iframe.contentDocument);
setTimeout(function () {
var startTime = PerfTestRunner.now();
iframe.contentDocument.execCommand('SelectAll');
- iframe.contentDocument.body.offsetTop;
+ PerfTestRunner.forceLayout(iframe.contentDocument);
setTimeout(function () {
PerfTestRunner.measureValueAsync(PerfTestRunner.now() - startTime);
PerfTestRunner.gc();
« no previous file with comments | « no previous file | PerformanceTests/Interactive/resources/window-resize.js » ('j') | PerformanceTests/resources/runner.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698