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

Unified Diff: tools/perf/page_sets/image_decoding_measurement.py

Issue 321563003: Add Wait* API to ActionRunner to wrap over WaitAction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to head. Created 6 years, 6 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: tools/perf/page_sets/image_decoding_measurement.py
diff --git a/tools/perf/page_sets/image_decoding_measurement.py b/tools/perf/page_sets/image_decoding_measurement.py
index 7b8fe61623dbb4041943281ce61b83bb678a8b90..a0d1bca59fe6233d76a4968ca2c01c9a769e1edb 100644
--- a/tools/perf/page_sets/image_decoding_measurement.py
+++ b/tools/perf/page_sets/image_decoding_measurement.py
@@ -17,10 +17,7 @@ class ImageDecodingMeasurementPage(page_module.Page):
def RunNavigateSteps(self, action_runner):
action_runner.NavigateToPage(self)
action_runner.ExecuteJavaScript('runBenchmark();')
- action_runner.RunAction(WaitAction(
- {
- 'javascript': 'isDone'
- }))
+ action_runner.WaitForJavaScriptCondition('isDone')
class ImageDecodingMeasurementPageSet(page_set_module.PageSet):
« no previous file with comments | « tools/perf/page_sets/gmail_expand_collapse_conversation.py ('k') | tools/perf/page_sets/indexeddb_offline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698