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

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

Issue 551863005: Added a WebRTC HD page to telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed endure methods. Created 6 years, 2 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/page_sets/data/webrtc_cases_000.wpr.sha1 ('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 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module 5 from telemetry.page import page_set as page_set_module
6 6
7 7
8 class WebrtcCasesPage(page_module.Page): 8 class WebrtcCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
(...skipping 17 matching lines...) Expand all
28 28
29 class Page2(WebrtcCasesPage): 29 class Page2(WebrtcCasesPage):
30 30
31 """ Why: Loopback video call using the PeerConnection API. """ 31 """ Why: Loopback video call using the PeerConnection API. """
32 32
33 def __init__(self, page_set): 33 def __init__(self, page_set):
34 super(Page2, self).__init__( 34 super(Page2, self).__init__(
35 url='file://third_party/webrtc/samples/js/demos/html/pc1.html', 35 url='file://third_party/webrtc/samples/js/demos/html/pc1.html',
36 page_set=page_set) 36 page_set=page_set)
37 37
38 def RunEndure(self, action_runner):
39 action_runner.ClickElement('button[id="btn1"]')
40 action_runner.Wait(2)
41 action_runner.ClickElement('button[id="btn2"]')
42 action_runner.Wait(10)
43 action_runner.ClickElement('button[id="btn3"]')
44
45 def RunWebrtc(self, action_runner): 38 def RunWebrtc(self, action_runner):
46 action_runner.ClickElement('button[id="btn1"]') 39 action_runner.ClickElement('button[id="btn1"]')
47 action_runner.Wait(2) 40 action_runner.Wait(2)
48 action_runner.ClickElement('button[id="btn2"]') 41 action_runner.ClickElement('button[id="btn2"]')
49 action_runner.Wait(10) 42 action_runner.Wait(10)
50 action_runner.ClickElement('button[id="btn3"]') 43 action_runner.ClickElement('button[id="btn3"]')
51 44
45 class Page3(WebrtcCasesPage):
46
47 """ Why: Acquires a high definition local stream. """
48
49 def __init__(self, page_set):
50 super(Page3, self).__init__(
51 url=('http://googlechrome.github.io/webrtc/samples/web/content/'
52 'getusermedia-resolution/'),
53 page_set=page_set)
54
55 def RunWebrtc(self, action_runner):
56 action_runner.ClickElement('button[id="hd"]')
57 action_runner.Wait(10)
58
52 59
53 class WebrtcCasesPageSet(page_set_module.PageSet): 60 class WebrtcCasesPageSet(page_set_module.PageSet):
54 61
55 """ WebRTC tests for Real-time audio and video communication. """ 62 """ WebRTC tests for Real-time audio and video communication. """
56 63
57 def __init__(self): 64 def __init__(self):
58 super(WebrtcCasesPageSet, self).__init__( 65 super(WebrtcCasesPageSet, self).__init__(
66 archive_data_file='data/webrtc_cases.json',
67 bucket=page_set_module.PUBLIC_BUCKET,
59 serving_dirs=['third_party/webrtc/samples/js']) 68 serving_dirs=['third_party/webrtc/samples/js'])
60 69
61 self.AddPage(Page1(self)) 70 self.AddPage(Page1(self))
62 self.AddPage(Page2(self)) 71 self.AddPage(Page2(self))
72 self.AddPage(Page3(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/webrtc_cases_000.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698