OLD | NEW |
---|---|
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 import story | 5 from telemetry import story |
6 | 6 |
7 _PAGE_TAGS_LIST = [ | 7 _PAGE_TAGS_LIST = [ |
8 # Audio codecs: | 8 # Audio codecs: |
9 'pcm', | 9 'pcm', |
10 'mp3', | 10 'mp3', |
(...skipping 12 matching lines...) Expand all Loading... | |
23 'is_50fps', | 23 'is_50fps', |
24 'is_4k', | 24 'is_4k', |
25 # Play action | 25 # Play action |
26 'seek', | 26 'seek', |
27 'normal_play', | 27 'normal_play', |
28 ] | 28 ] |
29 | 29 |
30 | 30 |
31 class ToughVideoCasesPage(page_module.Page): | 31 class ToughVideoCasesPage(page_module.Page): |
32 | 32 |
33 def __init__(self, url, page_set, tags): | 33 def __init__(self, url, page_set, tags, name): |
34 if tags: | 34 if tags: |
35 for t in tags: | 35 for t in tags: |
36 assert t in _PAGE_TAGS_LIST | 36 assert t in _PAGE_TAGS_LIST |
37 super(ToughVideoCasesPage, self).__init__( | 37 super(ToughVideoCasesPage, self).__init__( |
38 url=url, page_set=page_set, tags=tags) | 38 url=url, page_set=page_set, tags=tags, name=name) |
39 | 39 |
40 def PlayAction(self, action_runner): | 40 def PlayAction(self, action_runner): |
41 # Play the media until it has finished or it times out. | 41 # Play the media until it has finished or it times out. |
42 action_runner.PlayMedia(playing_event_timeout_in_seconds=60, | 42 action_runner.PlayMedia(playing_event_timeout_in_seconds=60, |
43 ended_event_timeout_in_seconds=60) | 43 ended_event_timeout_in_seconds=60) |
44 # Generate memory dump for memoryMetric. | 44 # Generate memory dump for memoryMetric. |
45 if self.page_set.measure_memory: | 45 if self.page_set.measure_memory: |
46 action_runner.MeasureMemory() | 46 action_runner.MeasureMemory() |
47 | 47 |
48 def SeekBeforeAndAfterPlayhead(self, action_runner, | 48 def SeekBeforeAndAfterPlayhead(self, action_runner, |
(...skipping 14 matching lines...) Expand all Loading... | |
63 if self.page_set.measure_memory: | 63 if self.page_set.measure_memory: |
64 action_runner.MeasureMemory() | 64 action_runner.MeasureMemory() |
65 | 65 |
66 | 66 |
67 class Page2(ToughVideoCasesPage): | 67 class Page2(ToughVideoCasesPage): |
68 | 68 |
69 def __init__(self, page_set): | 69 def __init__(self, page_set): |
70 super(Page2, self).__init__( | 70 super(Page2, self).__init__( |
71 url='file://tough_video_cases/video.html?src=crowd.ogg&type=audio', | 71 url='file://tough_video_cases/video.html?src=crowd.ogg&type=audio', |
72 page_set=page_set, | 72 page_set=page_set, |
73 tags=['vorbis', 'audio_only']) | 73 tags=['vorbis', 'audio_only'], |
74 name='video.html?src=crowd.ogg&type=audio') | |
johnchen
2017/06/05 14:11:52
Any reason we can't use url.split('/')[-1], as in
ashleymarie1
2017/06/05 14:16:15
I wasn't sure if you were going to want to change
| |
74 | 75 |
75 self.add_browser_metrics = True | 76 self.add_browser_metrics = True |
76 | 77 |
77 def RunPageInteractions(self, action_runner): | 78 def RunPageInteractions(self, action_runner): |
78 self.PlayAction(action_runner) | 79 self.PlayAction(action_runner) |
79 | 80 |
80 | 81 |
81 class Page4(ToughVideoCasesPage): | 82 class Page4(ToughVideoCasesPage): |
82 | 83 |
83 def __init__(self, page_set): | 84 def __init__(self, page_set): |
84 super(Page4, self).__init__( | 85 super(Page4, self).__init__( |
85 url='file://tough_video_cases/video.html?src=crowd1080.webm', | 86 url='file://tough_video_cases/video.html?src=crowd1080.webm', |
86 page_set=page_set, | 87 page_set=page_set, |
87 tags=['is_50fps', 'vp8', 'vorbis', 'audio_video', 'normal_play']) | 88 tags=['is_50fps', 'vp8', 'vorbis', 'audio_video', 'normal_play'], |
89 name='video.html?src=crowd1080.webm') | |
88 | 90 |
89 self.add_browser_metrics = True | 91 self.add_browser_metrics = True |
90 | 92 |
91 def RunPageInteractions(self, action_runner): | 93 def RunPageInteractions(self, action_runner): |
92 self.PlayAction(action_runner) | 94 self.PlayAction(action_runner) |
93 | 95 |
94 | 96 |
95 class Page7(ToughVideoCasesPage): | 97 class Page7(ToughVideoCasesPage): |
96 | 98 |
97 def __init__(self, page_set): | 99 def __init__(self, page_set): |
98 super(Page7, self).__init__( | 100 super(Page7, self).__init__( |
99 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio', | 101 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio', |
100 page_set=page_set, | 102 page_set=page_set, |
101 tags=['vorbis', 'audio_only', 'normal_play']) | 103 tags=['vorbis', 'audio_only', 'normal_play'], |
104 name='video.html?src=tulip2.ogg&type=audio') | |
102 | 105 |
103 self.add_browser_metrics = True | 106 self.add_browser_metrics = True |
104 | 107 |
105 def RunPageInteractions(self, action_runner): | 108 def RunPageInteractions(self, action_runner): |
106 self.PlayAction(action_runner) | 109 self.PlayAction(action_runner) |
107 | 110 |
108 | 111 |
109 class Page8(ToughVideoCasesPage): | 112 class Page8(ToughVideoCasesPage): |
110 | 113 |
111 def __init__(self, page_set): | 114 def __init__(self, page_set): |
112 super(Page8, self).__init__( | 115 super(Page8, self).__init__( |
113 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio', | 116 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio', |
114 page_set=page_set, | 117 page_set=page_set, |
115 tags=['pcm', 'audio_only', 'normal_play']) | 118 tags=['pcm', 'audio_only', 'normal_play'], |
119 name='video.html?src=tulip2.wav&type=audio') | |
116 | 120 |
117 self.add_browser_metrics = True | 121 self.add_browser_metrics = True |
118 | 122 |
119 def RunPageInteractions(self, action_runner): | 123 def RunPageInteractions(self, action_runner): |
120 self.PlayAction(action_runner) | 124 self.PlayAction(action_runner) |
121 | 125 |
122 | 126 |
123 class Page11(ToughVideoCasesPage): | 127 class Page11(ToughVideoCasesPage): |
124 | 128 |
125 def __init__(self, page_set): | 129 def __init__(self, page_set): |
126 super(Page11, self).__init__( | 130 super(Page11, self).__init__( |
127 url='file://tough_video_cases/video.html?src=crowd1080.mp4', | 131 url='file://tough_video_cases/video.html?src=crowd1080.mp4', |
128 page_set=page_set, | 132 page_set=page_set, |
129 tags=['is_50fps', 'h264', 'aac', 'audio_video', 'normal_play']) | 133 tags=['is_50fps', 'h264', 'aac', 'audio_video', 'normal_play'], |
134 name='video.html?src=crowd1080.mp4') | |
130 | 135 |
131 self.add_browser_metrics = True | 136 self.add_browser_metrics = True |
132 | 137 |
133 def RunPageInteractions(self, action_runner): | 138 def RunPageInteractions(self, action_runner): |
134 self.PlayAction(action_runner) | 139 self.PlayAction(action_runner) |
135 | 140 |
136 | 141 |
137 class Page12(ToughVideoCasesPage): | 142 class Page12(ToughVideoCasesPage): |
138 | 143 |
139 def __init__(self, page_set): | 144 def __init__(self, page_set): |
140 super(Page12, self).__init__( | 145 super(Page12, self).__init__( |
141 url='file://tough_video_cases/video.html?src=crowd2160.mp4', | 146 url='file://tough_video_cases/video.html?src=crowd2160.mp4', |
142 page_set=page_set, | 147 page_set=page_set, |
143 tags=['is_4k', 'is_50fps', 'h264', 'aac', 'audio_video', 'normal_play']) | 148 tags=['is_4k', 'is_50fps', 'h264', 'aac', 'audio_video', 'normal_play'], |
149 name='video.html?src=crowd2160.mp4') | |
144 | 150 |
145 self.add_browser_metrics = True | 151 self.add_browser_metrics = True |
146 | 152 |
147 def RunPageInteractions(self, action_runner): | 153 def RunPageInteractions(self, action_runner): |
148 self.PlayAction(action_runner) | 154 self.PlayAction(action_runner) |
149 | 155 |
150 | 156 |
151 class Page13(ToughVideoCasesPage): | 157 class Page13(ToughVideoCasesPage): |
152 | 158 |
153 def __init__(self, page_set): | 159 def __init__(self, page_set): |
154 super(Page13, self).__init__( | 160 super(Page13, self).__init__( |
155 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio', | 161 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio', |
156 page_set=page_set, | 162 page_set=page_set, |
157 tags=['mp3', 'audio_only', 'normal_play']) | 163 tags=['mp3', 'audio_only', 'normal_play'], |
164 name='video.html?src=tulip2.mp3&type=audio') | |
158 | 165 |
159 self.add_browser_metrics = True | 166 self.add_browser_metrics = True |
160 | 167 |
161 def RunPageInteractions(self, action_runner): | 168 def RunPageInteractions(self, action_runner): |
162 self.PlayAction(action_runner) | 169 self.PlayAction(action_runner) |
163 | 170 |
164 | 171 |
165 class Page14(ToughVideoCasesPage): | 172 class Page14(ToughVideoCasesPage): |
166 | 173 |
167 def __init__(self, page_set): | 174 def __init__(self, page_set): |
168 super(Page14, self).__init__( | 175 super(Page14, self).__init__( |
169 url='file://tough_video_cases/video.html?src=tulip2.mp4', | 176 url='file://tough_video_cases/video.html?src=tulip2.mp4', |
170 page_set=page_set, | 177 page_set=page_set, |
171 tags=['h264', 'aac', 'audio_video', 'normal_play']) | 178 tags=['h264', 'aac', 'audio_video', 'normal_play'], |
179 name='video.html?src=tulip2.mp4') | |
172 | 180 |
173 self.add_browser_metrics = True | 181 self.add_browser_metrics = True |
174 | 182 |
175 def RunPageInteractions(self, action_runner): | 183 def RunPageInteractions(self, action_runner): |
176 self.PlayAction(action_runner) | 184 self.PlayAction(action_runner) |
177 | 185 |
178 | 186 |
179 class Page15(ToughVideoCasesPage): | 187 class Page15(ToughVideoCasesPage): |
180 | 188 |
181 def __init__(self, page_set): | 189 def __init__(self, page_set): |
182 super(Page15, self).__init__( | 190 super(Page15, self).__init__( |
183 url='file://tough_video_cases/video.html?src=tulip2.m4a&type=audio', | 191 url='file://tough_video_cases/video.html?src=tulip2.m4a&type=audio', |
184 page_set=page_set, | 192 page_set=page_set, |
185 tags=['aac', 'audio_only', 'normal_play']) | 193 tags=['aac', 'audio_only', 'normal_play'], |
194 name='video.html?src=tulip2.m4a&type=audio') | |
186 | 195 |
187 self.add_browser_metrics = True | 196 self.add_browser_metrics = True |
188 | 197 |
189 def RunPageInteractions(self, action_runner): | 198 def RunPageInteractions(self, action_runner): |
190 self.PlayAction(action_runner) | 199 self.PlayAction(action_runner) |
191 | 200 |
192 | 201 |
193 class Page16(ToughVideoCasesPage): | 202 class Page16(ToughVideoCasesPage): |
194 | 203 |
195 def __init__(self, page_set): | 204 def __init__(self, page_set): |
196 super(Page16, self).__init__( | 205 super(Page16, self).__init__( |
197 url='file://tough_video_cases/video.html?src=garden2_10s.webm', | 206 url='file://tough_video_cases/video.html?src=garden2_10s.webm', |
198 page_set=page_set, | 207 page_set=page_set, |
199 tags=['is_4k', 'vp8', 'vorbis', 'audio_video', 'normal_play']) | 208 tags=['is_4k', 'vp8', 'vorbis', 'audio_video', 'normal_play'], |
209 name='video.html?src=garden2_10s.webm') | |
200 | 210 |
201 self.add_browser_metrics = True | 211 self.add_browser_metrics = True |
202 | 212 |
203 def RunPageInteractions(self, action_runner): | 213 def RunPageInteractions(self, action_runner): |
204 self.PlayAction(action_runner) | 214 self.PlayAction(action_runner) |
205 | 215 |
206 | 216 |
207 class Page17(ToughVideoCasesPage): | 217 class Page17(ToughVideoCasesPage): |
208 | 218 |
209 def __init__(self, page_set): | 219 def __init__(self, page_set): |
210 super(Page17, self).__init__( | 220 super(Page17, self).__init__( |
211 url='file://tough_video_cases/video.html?src=garden2_10s.mp4', | 221 url='file://tough_video_cases/video.html?src=garden2_10s.mp4', |
212 page_set=page_set, | 222 page_set=page_set, |
213 tags=['is_4k', 'h264', 'aac', 'audio_video', 'normal_play']) | 223 tags=['is_4k', 'h264', 'aac', 'audio_video', 'normal_play'], |
224 name='video.html?src=garden2_10s.mp4') | |
214 | 225 |
215 self.add_browser_metrics = True | 226 self.add_browser_metrics = True |
216 | 227 |
217 def RunPageInteractions(self, action_runner): | 228 def RunPageInteractions(self, action_runner): |
218 self.PlayAction(action_runner) | 229 self.PlayAction(action_runner) |
219 | 230 |
220 | 231 |
221 class Page19(ToughVideoCasesPage): | 232 class Page19(ToughVideoCasesPage): |
222 | 233 |
223 def __init__(self, page_set): | 234 def __init__(self, page_set): |
224 super(Page19, self).__init__( | 235 super(Page19, self).__init__( |
225 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio&seek', | 236 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio&seek', |
226 page_set=page_set, | 237 page_set=page_set, |
227 tags=['vorbis', 'audio_only', 'seek']) | 238 tags=['vorbis', 'audio_only', 'seek'], |
239 name='video.html?src=tulip2.ogg&type=audio&seek') | |
228 | 240 |
229 self.skip_basic_metrics = True | 241 self.skip_basic_metrics = True |
230 | 242 |
231 def RunPageInteractions(self, action_runner): | 243 def RunPageInteractions(self, action_runner): |
232 self.SeekBeforeAndAfterPlayhead(action_runner) | 244 self.SeekBeforeAndAfterPlayhead(action_runner) |
233 | 245 |
234 | 246 |
235 class Page20(ToughVideoCasesPage): | 247 class Page20(ToughVideoCasesPage): |
236 | 248 |
237 def __init__(self, page_set): | 249 def __init__(self, page_set): |
238 super(Page20, self).__init__( | 250 super(Page20, self).__init__( |
239 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio&seek', | 251 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio&seek', |
240 page_set=page_set, | 252 page_set=page_set, |
241 tags=['pcm', 'audio_only', 'seek']) | 253 tags=['pcm', 'audio_only', 'seek'], |
254 name='video.html?src=tulip2.wav&type=audio&seek') | |
242 | 255 |
243 self.skip_basic_metrics = True | 256 self.skip_basic_metrics = True |
244 | 257 |
245 def RunPageInteractions(self, action_runner): | 258 def RunPageInteractions(self, action_runner): |
246 self.SeekBeforeAndAfterPlayhead(action_runner) | 259 self.SeekBeforeAndAfterPlayhead(action_runner) |
247 | 260 |
248 | 261 |
249 class Page23(ToughVideoCasesPage): | 262 class Page23(ToughVideoCasesPage): |
250 | 263 |
251 def __init__(self, page_set): | 264 def __init__(self, page_set): |
252 super(Page23, self).__init__( | 265 super(Page23, self).__init__( |
253 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio&seek', | 266 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio&seek', |
254 page_set=page_set, | 267 page_set=page_set, |
255 tags=['mp3', 'audio_only', 'seek']) | 268 tags=['mp3', 'audio_only', 'seek'], |
269 name='video.html?src=tulip2.mp3&type=audio&seek') | |
256 | 270 |
257 self.skip_basic_metrics = True | 271 self.skip_basic_metrics = True |
258 | 272 |
259 def RunPageInteractions(self, action_runner): | 273 def RunPageInteractions(self, action_runner): |
260 self.SeekBeforeAndAfterPlayhead(action_runner) | 274 self.SeekBeforeAndAfterPlayhead(action_runner) |
261 | 275 |
262 | 276 |
263 class Page24(ToughVideoCasesPage): | 277 class Page24(ToughVideoCasesPage): |
264 | 278 |
265 def __init__(self, page_set): | 279 def __init__(self, page_set): |
266 super(Page24, self).__init__( | 280 super(Page24, self).__init__( |
267 url='file://tough_video_cases/video.html?src=tulip2.mp4&seek', | 281 url='file://tough_video_cases/video.html?src=tulip2.mp4&seek', |
268 page_set=page_set, | 282 page_set=page_set, |
269 tags=['h264', 'aac', 'audio_video', 'seek']) | 283 tags=['h264', 'aac', 'audio_video', 'seek'], |
284 name='video.html?src=tulip2.mp4&seek') | |
270 | 285 |
271 self.skip_basic_metrics = True | 286 self.skip_basic_metrics = True |
272 | 287 |
273 def RunPageInteractions(self, action_runner): | 288 def RunPageInteractions(self, action_runner): |
274 self.SeekBeforeAndAfterPlayhead(action_runner) | 289 self.SeekBeforeAndAfterPlayhead(action_runner) |
275 | 290 |
276 | 291 |
277 class Page25(ToughVideoCasesPage): | 292 class Page25(ToughVideoCasesPage): |
278 | 293 |
279 def __init__(self, page_set): | 294 def __init__(self, page_set): |
280 super(Page25, self).__init__( | 295 super(Page25, self).__init__( |
281 url='file://tough_video_cases/video.html?src=garden2_10s.webm&seek', | 296 url='file://tough_video_cases/video.html?src=garden2_10s.webm&seek', |
282 page_set=page_set, | 297 page_set=page_set, |
283 tags=['is_4k', 'vp8', 'vorbis', 'audio_video', 'seek']) | 298 tags=['is_4k', 'vp8', 'vorbis', 'audio_video', 'seek'], |
299 name='video.html?src=garden2_10s.webm&seek') | |
284 | 300 |
285 self.skip_basic_metrics = True | 301 self.skip_basic_metrics = True |
286 | 302 |
287 def RunPageInteractions(self, action_runner): | 303 def RunPageInteractions(self, action_runner): |
288 self.SeekBeforeAndAfterPlayhead(action_runner) | 304 self.SeekBeforeAndAfterPlayhead(action_runner) |
289 | 305 |
290 | 306 |
291 class Page26(ToughVideoCasesPage): | 307 class Page26(ToughVideoCasesPage): |
292 | 308 |
293 def __init__(self, page_set): | 309 def __init__(self, page_set): |
294 super(Page26, self).__init__( | 310 super(Page26, self).__init__( |
295 url='file://tough_video_cases/video.html?src=garden2_10s.mp4&seek', | 311 url='file://tough_video_cases/video.html?src=garden2_10s.mp4&seek', |
296 page_set=page_set, | 312 page_set=page_set, |
297 tags=['is_4k', 'h264', 'aac', 'audio_video', 'seek']) | 313 tags=['is_4k', 'h264', 'aac', 'audio_video', 'seek'], |
314 name='video.html?src=garden2_10s.mp4&seek') | |
298 | 315 |
299 self.skip_basic_metrics = True | 316 self.skip_basic_metrics = True |
300 | 317 |
301 def RunPageInteractions(self, action_runner): | 318 def RunPageInteractions(self, action_runner): |
302 self.SeekBeforeAndAfterPlayhead(action_runner) | 319 self.SeekBeforeAndAfterPlayhead(action_runner) |
303 | 320 |
304 | 321 |
305 class Page30(ToughVideoCasesPage): | 322 class Page30(ToughVideoCasesPage): |
306 | 323 |
307 def __init__(self, page_set): | 324 def __init__(self, page_set): |
308 super(Page30, self).__init__( | 325 super(Page30, self).__init__( |
309 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm', | 326 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm', |
310 page_set=page_set, | 327 page_set=page_set, |
311 tags=['vp9', 'opus', 'audio_video', 'normal_play']) | 328 tags=['vp9', 'opus', 'audio_video', 'normal_play'], |
329 name='video.html?src=tulip2.vp9.webm') | |
312 | 330 |
313 self.add_browser_metrics = True | 331 self.add_browser_metrics = True |
314 | 332 |
315 def RunPageInteractions(self, action_runner): | 333 def RunPageInteractions(self, action_runner): |
316 self.PlayAction(action_runner) | 334 self.PlayAction(action_runner) |
317 | 335 |
318 | 336 |
319 class Page31(ToughVideoCasesPage): | 337 class Page31(ToughVideoCasesPage): |
320 | 338 |
321 def __init__(self, page_set): | 339 def __init__(self, page_set): |
322 super(Page31, self).__init__( | 340 super(Page31, self).__init__( |
323 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm&seek', | 341 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm&seek', |
324 page_set=page_set, | 342 page_set=page_set, |
325 tags=['vp9', 'opus', 'audio_video', 'seek']) | 343 tags=['vp9', 'opus', 'audio_video', 'seek'], |
344 name='video.html?src=tulip2.vp9.webm&seek') | |
326 | 345 |
327 self.skip_basic_metrics = True | 346 self.skip_basic_metrics = True |
328 | 347 |
329 def RunPageInteractions(self, action_runner): | 348 def RunPageInteractions(self, action_runner): |
330 self.SeekBeforeAndAfterPlayhead(action_runner) | 349 self.SeekBeforeAndAfterPlayhead(action_runner) |
331 | 350 |
332 | 351 |
333 class Page32(ToughVideoCasesPage): | 352 class Page32(ToughVideoCasesPage): |
334 | 353 |
335 def __init__(self, page_set): | 354 def __init__(self, page_set): |
336 super(Page32, self).__init__( | 355 super(Page32, self).__init__( |
337 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm', | 356 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm', |
338 page_set=page_set, | 357 page_set=page_set, |
339 tags=['vp9', 'video_only', 'normal_play']) | 358 tags=['vp9', 'video_only', 'normal_play'], |
359 name='video.html?src=crowd1080_vp9.webm') | |
340 | 360 |
341 self.add_browser_metrics = True | 361 self.add_browser_metrics = True |
342 | 362 |
343 def RunPageInteractions(self, action_runner): | 363 def RunPageInteractions(self, action_runner): |
344 self.PlayAction(action_runner) | 364 self.PlayAction(action_runner) |
345 | 365 |
346 | 366 |
347 class Page33(ToughVideoCasesPage): | 367 class Page33(ToughVideoCasesPage): |
348 | 368 |
349 def __init__(self, page_set): | 369 def __init__(self, page_set): |
350 super(Page33, self).__init__( | 370 super(Page33, self).__init__( |
351 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm&seek', | 371 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm&seek', |
352 page_set=page_set, | 372 page_set=page_set, |
353 tags=['vp9', 'video_only', 'seek']) | 373 tags=['vp9', 'video_only', 'seek'], |
374 name='video.html?src=crowd1080_vp9.webm&seek') | |
354 | 375 |
355 self.skip_basic_metrics = True | 376 self.skip_basic_metrics = True |
356 | 377 |
357 def RunPageInteractions(self, action_runner): | 378 def RunPageInteractions(self, action_runner): |
358 self.SeekBeforeAndAfterPlayhead(action_runner) | 379 self.SeekBeforeAndAfterPlayhead(action_runner) |
359 | 380 |
360 | 381 |
361 class Page34(ToughVideoCasesPage): | 382 class Page34(ToughVideoCasesPage): |
362 | 383 |
363 def __init__(self, page_set): | 384 def __init__(self, page_set): |
364 super(Page34, self).__init__( | 385 super(Page34, self).__init__( |
365 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm', | 386 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm', |
366 page_set=page_set, | 387 page_set=page_set, |
367 tags=['vp9', 'video_only', 'normal_play']) | 388 tags=['vp9', 'video_only', 'normal_play'], |
389 name='video.html?src=crowd720_vp9.webm') | |
368 | 390 |
369 self.add_browser_metrics = True | 391 self.add_browser_metrics = True |
370 | 392 |
371 def RunPageInteractions(self, action_runner): | 393 def RunPageInteractions(self, action_runner): |
372 self.PlayAction(action_runner) | 394 self.PlayAction(action_runner) |
373 | 395 |
374 | 396 |
375 class Page35(ToughVideoCasesPage): | 397 class Page35(ToughVideoCasesPage): |
376 | 398 |
377 def __init__(self, page_set): | 399 def __init__(self, page_set): |
378 super(Page35, self).__init__( | 400 super(Page35, self).__init__( |
379 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm&seek', | 401 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm&seek', |
380 page_set=page_set, | 402 page_set=page_set, |
381 tags=['vp9', 'video_only', 'seek']) | 403 tags=['vp9', 'video_only', 'seek'], |
404 name='video.html?src=crowd720_vp9.webm&seek') | |
382 | 405 |
383 self.skip_basic_metrics = True | 406 self.skip_basic_metrics = True |
384 | 407 |
385 def RunPageInteractions(self, action_runner): | 408 def RunPageInteractions(self, action_runner): |
386 self.SeekBeforeAndAfterPlayhead(action_runner) | 409 self.SeekBeforeAndAfterPlayhead(action_runner) |
387 | 410 |
388 | 411 |
389 class Page36(ToughVideoCasesPage): | 412 class Page36(ToughVideoCasesPage): |
390 | 413 |
391 def __init__(self, page_set): | 414 def __init__(self, page_set): |
392 super(Page36, self).__init__( | 415 super(Page36, self).__init__( |
393 url=('file://tough_video_cases/video.html?src=' | 416 url=('file://tough_video_cases/video.html?src=' |
394 'smpte_3840x2160_60fps_vp9.webm&seek'), | 417 'smpte_3840x2160_60fps_vp9.webm&seek'), |
395 page_set=page_set, | 418 page_set=page_set, |
396 tags=['is_4k', 'vp9', 'video_only', 'seek']) | 419 tags=['is_4k', 'vp9', 'video_only', 'seek'], |
420 name=('video.html?src=' | |
421 'smpte_3840x2160_60fps_vp9.webm&seek')) | |
397 | 422 |
398 self.add_browser_metrics = True | 423 self.add_browser_metrics = True |
399 | 424 |
400 def RunPageInteractions(self, action_runner): | 425 def RunPageInteractions(self, action_runner): |
401 self.SeekBeforeAndAfterPlayhead(action_runner, | 426 self.SeekBeforeAndAfterPlayhead(action_runner, |
402 action_timeout_in_seconds=120) | 427 action_timeout_in_seconds=120) |
403 | 428 |
404 | 429 |
405 class ToughVideoCasesPageSet(story.StorySet): | 430 class ToughVideoCasesPageSet(story.StorySet): |
406 """ | 431 """ |
407 Description: Video Stack Perf pages that report time_to_play, seek time and | 432 Description: Video Stack Perf pages that report time_to_play, seek time and |
408 many other media-specific and generic metrics. | 433 many other media-specific and generic metrics. |
409 """ | 434 """ |
410 def __init__(self, measure_memory=False): | 435 def __init__(self, measure_memory=False): |
411 super(ToughVideoCasesPageSet, self).__init__( | 436 super(ToughVideoCasesPageSet, self).__init__( |
412 cloud_storage_bucket=story.PARTNER_BUCKET) | 437 cloud_storage_bucket=story.PARTNER_BUCKET, |
438 verify_names=True) | |
413 | 439 |
414 self.measure_memory = measure_memory | 440 self.measure_memory = measure_memory |
415 | 441 |
416 # Normal play tests: | 442 # Normal play tests: |
417 self.AddStory(Page2(self)) | 443 self.AddStory(Page2(self)) |
418 self.AddStory(Page4(self)) | 444 self.AddStory(Page4(self)) |
419 self.AddStory(Page7(self)) | 445 self.AddStory(Page7(self)) |
420 self.AddStory(Page8(self)) | 446 self.AddStory(Page8(self)) |
421 self.AddStory(Page11(self)) | 447 self.AddStory(Page11(self)) |
422 self.AddStory(Page12(self)) | 448 self.AddStory(Page12(self)) |
(...skipping 10 matching lines...) Expand all Loading... | |
433 self.AddStory(Page19(self)) | 459 self.AddStory(Page19(self)) |
434 self.AddStory(Page20(self)) | 460 self.AddStory(Page20(self)) |
435 self.AddStory(Page23(self)) | 461 self.AddStory(Page23(self)) |
436 self.AddStory(Page24(self)) | 462 self.AddStory(Page24(self)) |
437 self.AddStory(Page25(self)) | 463 self.AddStory(Page25(self)) |
438 self.AddStory(Page26(self)) | 464 self.AddStory(Page26(self)) |
439 self.AddStory(Page31(self)) | 465 self.AddStory(Page31(self)) |
440 self.AddStory(Page33(self)) | 466 self.AddStory(Page33(self)) |
441 self.AddStory(Page35(self)) | 467 self.AddStory(Page35(self)) |
442 self.AddStory(Page36(self)) | 468 self.AddStory(Page36(self)) |
OLD | NEW |