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

Side by Side Diff: tools/perf/contrib/cluster_telemetry/repaint_helpers.py

Issue 2876073003: Migrate cluster telemetry benchmarks to tools/perf/contrib/cluster_telemetry/ (Closed)
Patch Set: Remove BENCHMARKS_BLACK_LIST Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from telemetry.page import legacy_page_test 5 from telemetry.page import legacy_page_test
6 6
7 7
8 def Repaint(action_runner, mode='viewport', width=None, height=None): 8 def Repaint(action_runner, mode='viewport', width=None, height=None):
9 action_runner.WaitForJavaScriptCondition( 9 action_runner.WaitForJavaScriptCondition(
10 'document.readyState == "complete"', timeout=90) 10 'document.readyState == "complete"', timeout=90)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 {{ micro_benchmark_id }}, { 46 {{ micro_benchmark_id }}, {
47 "notify_done": true 47 "notify_done": true
48 }); 48 });
49 """, 49 """,
50 micro_benchmark_id=micro_benchmark_id) 50 micro_benchmark_id=micro_benchmark_id)
51 51
52 52
53 def WaitThenRepaint(action_runner): 53 def WaitThenRepaint(action_runner):
54 action_runner.Wait(2) 54 action_runner.Wait(2)
55 Repaint(action_runner) 55 Repaint(action_runner)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698