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

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: 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
« no previous file with comments | « no previous file | PerformanceTests/Interactive/resources/window-resize.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/Interactive/SelectAll.html
diff --git a/PerformanceTests/Interactive/SelectAll.html b/PerformanceTests/Interactive/SelectAll.html
index 1e89ab94c947a599151777fc129b8d0575d2b585..0e67c1a5fced2654cc3f5ff241f4465c0dda94ee 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.forceLayoutOrFullFrame(iframe.contentDocument);
setTimeout(function () {
var startTime = PerfTestRunner.now();
iframe.contentDocument.execCommand('SelectAll');
- iframe.contentDocument.body.offsetTop;
+ PerfTestRunner.forceLayoutOrFullFrame(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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698