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

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

Issue 2926633002: Explicitly setting story names for all smoothness benchmarks (Closed)
Patch Set: Explicitly setting story names for all smoothness benchmarks Created 3 years, 6 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/tough_texture_upload_cases.py ('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 4
5 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
6 from telemetry import story 6 from telemetry import story
7 7
8 from page_sets import webgl_supported_shared_state 8 from page_sets import webgl_supported_shared_state
9 9
10 10
11 class ToughWebglCasesPage(page_module.Page): 11 class ToughWebglCasesPage(page_module.Page):
12 12
13 def __init__(self, url, page_set): 13 def __init__(self, url, page_set):
14 super(ToughWebglCasesPage, self).__init__( 14 super(ToughWebglCasesPage, self).__init__(
15 url=url, page_set=page_set, 15 url=url, page_set=page_set,
16 shared_page_state_class=( 16 shared_page_state_class=(
17 webgl_supported_shared_state.WebGLSupportedSharedState), 17 webgl_supported_shared_state.WebGLSupportedSharedState),
18 make_javascript_deterministic=False) 18 make_javascript_deterministic=False,
19 name=url)
19 self.archive_data_file = 'data/tough_webgl_cases.json' 20 self.archive_data_file = 'data/tough_webgl_cases.json'
20 21
21 22
22 @property 23 @property
23 def skipped_gpus(self): 24 def skipped_gpus(self):
24 # crbug.com/462729 25 # crbug.com/462729
25 return ['arm', 'broadcom', 'hisilicon', 'imagination', 'qualcomm', 26 return ['arm', 'broadcom', 'hisilicon', 'imagination', 'qualcomm',
26 'vivante'] 27 'vivante']
27 28
28 def RunNavigateSteps(self, action_runner): 29 def RunNavigateSteps(self, action_runner):
29 super(ToughWebglCasesPage, self).RunNavigateSteps(action_runner) 30 super(ToughWebglCasesPage, self).RunNavigateSteps(action_runner)
30 action_runner.WaitForJavaScriptCondition( 31 action_runner.WaitForJavaScriptCondition(
31 'document.readyState == "complete"') 32 'document.readyState == "complete"')
32 action_runner.Wait(2) 33 action_runner.Wait(2)
33 34
34 def RunPageInteractions(self, action_runner): 35 def RunPageInteractions(self, action_runner):
35 with action_runner.CreateInteraction('WebGLAnimation'): 36 with action_runner.CreateInteraction('WebGLAnimation'):
36 action_runner.Wait(5) 37 action_runner.Wait(5)
37 38
38 39
39 class ToughWebglCasesPageSet(story.StorySet): 40 class ToughWebglCasesPageSet(story.StorySet):
40 41
41 """ 42 """
42 Description: Self-driven WebGL animation examples 43 Description: Self-driven WebGL animation examples
43 """ 44 """
44 45
45 def __init__(self): 46 def __init__(self):
46 super(ToughWebglCasesPageSet, self).__init__( 47 super(ToughWebglCasesPageSet, self).__init__(
47 archive_data_file='data/tough_webgl_cases.json', 48 archive_data_file='data/tough_webgl_cases.json',
48 cloud_storage_bucket=story.PUBLIC_BUCKET) 49 cloud_storage_bucket=story.PUBLIC_BUCKET,
50 verify_names=True)
49 51
50 urls_list = [ 52 urls_list = [
51 # pylint: disable=line-too-long 53 # pylint: disable=line-too-long
52 'http://www.khronos.org/registry/webgl/sdk/demos/google/nvidia-vertex-buff er-object/index.html', 54 'http://www.khronos.org/registry/webgl/sdk/demos/google/nvidia-vertex-buff er-object/index.html',
53 # pylint: disable=line-too-long 55 # pylint: disable=line-too-long
54 'http://www.khronos.org/registry/webgl/sdk/demos/google/san-angeles/index. html', 56 'http://www.khronos.org/registry/webgl/sdk/demos/google/san-angeles/index. html',
55 # pylint: disable=line-too-long 57 # pylint: disable=line-too-long
56 'http://www.khronos.org/registry/webgl/sdk/demos/google/particles/index.ht ml', 58 'http://www.khronos.org/registry/webgl/sdk/demos/google/particles/index.ht ml',
57 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/Earth.html', 59 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/Earth.html',
58 # pylint: disable=line-too-long 60 # pylint: disable=line-too-long
59 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/ManyPlanetsDeep.ht ml', 61 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/ManyPlanetsDeep.ht ml',
60 'http://webglsamples.org/aquarium/aquarium.html', 62 'http://webglsamples.org/aquarium/aquarium.html',
61 'http://webglsamples.org/blob/blob.html', 63 'http://webglsamples.org/blob/blob.html',
62 # pylint: disable=line-too-long 64 # pylint: disable=line-too-long
63 'http://webglsamples.org/dynamic-cubemap/dynamic-cubemap.html', 65 'http://webglsamples.org/dynamic-cubemap/dynamic-cubemap.html',
64 # pylint: disable=line-too-long 66 # pylint: disable=line-too-long
65 'http://kenrussell.github.io/webgl-animometer/Animometer/tests/3d/webgl.ht ml', 67 'http://kenrussell.github.io/webgl-animometer/Animometer/tests/3d/webgl.ht ml',
66 ] 68 ]
67 for url in urls_list: 69 for url in urls_list:
68 self.AddStory(ToughWebglCasesPage(url, self)) 70 self.AddStory(ToughWebglCasesPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_texture_upload_cases.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698