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 """
23 super(MseCasesPageSet
, self
).__init
__(bucket
=page_set_module
.PUBLIC_BUCKET
)
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',
47 self
.AddPage(MseCasesPage(url
, self
))