Plumb scroll elasticity layer from Blink to cc
[chromium-blink-merge.git] / tools / perf / page_sets / mse_cases.py
blob1bf90024d01f43eca8f8067e57ae7ca4b451e3ce
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.page import page_set as page_set_module
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 action_runner.NavigateToPage(self)
15 action_runner.WaitForJavaScriptCondition('window.__testDone == true')
18 class MseCasesPageSet(page_set_module.PageSet):
20 """ Media source extensions perf benchmark """
22 def __init__(self):
23 super(MseCasesPageSet, self).__init__()
25 urls_list = [
26 'file://mse_cases/startup_test.html?testType=AV',
27 'file://mse_cases/startup_test.html?testType=AV&useAppendStream=true',
28 # pylint: disable=C0301
29 'file://mse_cases/startup_test.html?testType=AV&doNotWaitForBodyOnLoad=true',
30 # pylint: disable=C0301
31 'file://mse_cases/startup_test.html?testType=AV&useAppendStream=true&doNotWaitForBodyOnLoad=true',
32 'file://mse_cases/startup_test.html?testType=V',
33 'file://mse_cases/startup_test.html?testType=V&useAppendStream=true',
34 # pylint: disable=C0301
35 'file://mse_cases/startup_test.html?testType=V&doNotWaitForBodyOnLoad=true',
36 # pylint: disable=C0301
37 'file://mse_cases/startup_test.html?testType=V&useAppendStream=true&doNotWaitForBodyOnLoad=true',
38 'file://mse_cases/startup_test.html?testType=A',
39 'file://mse_cases/startup_test.html?testType=A&useAppendStream=true',
40 # pylint: disable=C0301
41 'file://mse_cases/startup_test.html?testType=A&doNotWaitForBodyOnLoad=true',
42 # pylint: disable=C0301
43 'file://mse_cases/startup_test.html?testType=A&useAppendStream=true&doNotWaitForBodyOnLoad=true',
46 for url in urls_list:
47 self.AddPage(MseCasesPage(url, self))