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

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

Issue 2744243007: Wait until draw is defined in webrtc.webrtc_smoothness_tbmv2 (Closed)
Patch Set: Wait until draw becomes defined. Created 3 years, 9 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
« no previous file with comments | « tools/perf/benchmarks/webrtc.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/webrtc_cases.py
diff --git a/tools/perf/page_sets/webrtc_cases.py b/tools/perf/page_sets/webrtc_cases.py
index 41427d81fede5c5f6da3672ccdbe8379910e5b80..9ea37d81c91878ba5bce15206ae4cf834c80b72c 100644
--- a/tools/perf/page_sets/webrtc_cases.py
+++ b/tools/perf/page_sets/webrtc_cases.py
@@ -149,6 +149,7 @@ class Page8(WebrtcPage):
def RunPageInteractions(self, action_runner):
with action_runner.CreateInteraction('Action_Canvas_PeerConnection',
repeatable=False):
+ action_runner.WaitForJavaScriptCondition('typeof draw !== "undefined"')
action_runner.ExecuteJavaScript('draw();')
action_runner.ExecuteJavaScript('doCanvasCaptureAndPeerConnection();')
action_runner.Wait(10)
« no previous file with comments | « tools/perf/benchmarks/webrtc.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698