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

Side by Side Diff: tools/perf/page_sets/webrtc_cases.py

Issue 2744243007: Wait until draw is defined in webrtc.webrtc_smoothness_tbmv2 (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « tools/perf/benchmarks/webrtc.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import os 4 import os
5 5
6 from telemetry import story 6 from telemetry import story
7 from telemetry.page import page as page_module 7 from telemetry.page import page as page_module
8 8
9 9
10 WEBRTC_TEST_PAGES_URL = 'https://test.webrtc.org/manual/' 10 WEBRTC_TEST_PAGES_URL = 'https://test.webrtc.org/manual/'
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 def __init__(self, page_set): 142 def __init__(self, page_set):
143 canvas_capure_html = 'canvascapture/canvas_capture_peerconnection.html' 143 canvas_capure_html = 'canvascapture/canvas_capture_peerconnection.html'
144 super(Page8, self).__init__( 144 super(Page8, self).__init__(
145 url=MEDIARECORDER_GITHUB_URL + canvas_capure_html, 145 url=MEDIARECORDER_GITHUB_URL + canvas_capure_html,
146 name='canvas_capture_peer_connection', 146 name='canvas_capture_peer_connection',
147 page_set=page_set) 147 page_set=page_set)
148 148
149 def RunPageInteractions(self, action_runner): 149 def RunPageInteractions(self, action_runner):
150 with action_runner.CreateInteraction('Action_Canvas_PeerConnection', 150 with action_runner.CreateInteraction('Action_Canvas_PeerConnection',
151 repeatable=False): 151 repeatable=False):
152 action_runner.Wait(10)
nednguyen 2017/03/16 16:12:35 Please wait for until the draw command is defined
152 action_runner.ExecuteJavaScript('draw();') 153 action_runner.ExecuteJavaScript('draw();')
153 action_runner.ExecuteJavaScript('doCanvasCaptureAndPeerConnection();') 154 action_runner.ExecuteJavaScript('doCanvasCaptureAndPeerConnection();')
154 action_runner.Wait(10) 155 action_runner.Wait(10)
155 156
156 157
157 class Page9(WebrtcPage): 158 class Page9(WebrtcPage):
158 """Why: Sets up several peerconnections in the same page.""" 159 """Why: Sets up several peerconnections in the same page."""
159 160
160 def __init__(self, page_set): 161 def __init__(self, page_set):
161 super(Page9, self).__init__( 162 super(Page9, self).__init__(
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 class WebrtcRenderingPageSet(story.StorySet): 237 class WebrtcRenderingPageSet(story.StorySet):
237 """WebRTC tests for video rendering.""" 238 """WebRTC tests for video rendering."""
238 239
239 def __init__(self): 240 def __init__(self):
240 super(WebrtcRenderingPageSet, self).__init__( 241 super(WebrtcRenderingPageSet, self).__init__(
241 archive_data_file='data/webrtc_smoothness_cases.json', 242 archive_data_file='data/webrtc_smoothness_cases.json',
242 cloud_storage_bucket=story.PARTNER_BUCKET) 243 cloud_storage_bucket=story.PARTNER_BUCKET)
243 244
244 self.AddStory(Page2(self)) 245 self.AddStory(Page2(self))
245 self.AddStory(Page8(self)) 246 self.AddStory(Page8(self))
OLDNEW
« 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