Fix OOP <webview> resize and autosize.
[chromium-blink-merge.git] / tools / perf / page_sets / mse_cases.py
blobf78c6865f9d211a144915883e5454b5ff3f6dd1b
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
3 # found in the LICENSE file.
4 from telemetry.page import page as page_module
5 from telemetry import story
8 class MseCasesPage(page_module.Page):
10 def __init__(self, url, page_set):
11 super(MseCasesPage, self).__init__(url=url, page_set=page_set)
13 def RunNavigateSteps(self, action_runner):
14 super(MseCasesPage, self).RunNavigateSteps(action_runner)
15 action_runner.WaitForJavaScriptCondition('window.__testDone == true')
18 class MseCasesPageSet(story.StorySet):
20 """ Media source extensions perf benchmark """
22 def __init__(self):
23 super(MseCasesPageSet, self).__init__(
24 cloud_storage_bucket=story.PUBLIC_BUCKET)
26 urls_list = [
27 'file://mse_cases/startup_test.html?testType=AV',
28 'file://mse_cases/startup_test.html?testType=AV&useAppendStream=true',
29 # pylint: disable=C0301
30 'file://mse_cases/startup_test.html?testType=AV&doNotWaitForBodyOnLoad=true',
31 # pylint: disable=C0301
32 'file://mse_cases/startup_test.html?testType=AV&useAppendStream=true&doNotWaitForBodyOnLoad=true',
33 'file://mse_cases/startup_test.html?testType=V',
34 'file://mse_cases/startup_test.html?testType=V&useAppendStream=true',
35 # pylint: disable=C0301
36 'file://mse_cases/startup_test.html?testType=V&doNotWaitForBodyOnLoad=true',
37 # pylint: disable=C0301
38 'file://mse_cases/startup_test.html?testType=V&useAppendStream=true&doNotWaitForBodyOnLoad=true',
39 'file://mse_cases/startup_test.html?testType=A',
40 'file://mse_cases/startup_test.html?testType=A&useAppendStream=true',
41 # pylint: disable=C0301
42 'file://mse_cases/startup_test.html?testType=A&doNotWaitForBodyOnLoad=true',
43 # pylint: disable=C0301
44 'file://mse_cases/startup_test.html?testType=A&useAppendStream=true&doNotWaitForBodyOnLoad=true',
47 for url in urls_list:
48 self.AddStory(MseCasesPage(url, self))