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

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: 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/Interactive/SelectAll.html
diff --git a/PerformanceTests/Interactive/SelectAll.html b/PerformanceTests/Interactive/SelectAll.html
index 1e89ab94c947a599151777fc129b8d0575d2b585..75c777a5be112bf67424d2ba802667c3cf097b38 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.layoutOrFullyRender(iframe.contentDocument);
setTimeout(function () {
var startTime = PerfTestRunner.now();
iframe.contentDocument.execCommand('SelectAll');
- iframe.contentDocument.body.offsetTop;
+ PerfTestRunner.layoutOrFullyRender(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/ShadowDOM/ChangingSelect.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698