OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import test |
| 6 |
5 from benchmarks import silk_flags | 7 from benchmarks import silk_flags |
6 from measurements import smoothness | 8 from measurements import smoothness |
7 from telemetry import test | 9 import page_sets |
8 | 10 |
9 | 11 |
10 @test.Disabled # crbug.com/368767 | 12 @test.Disabled # crbug.com/368767 |
11 class SmoothnessTop25(test.Test): | 13 class SmoothnessTop25(test.Test): |
12 """Measures rendering statistics while scrolling down the top 25 web pages. | 14 """Measures rendering statistics while scrolling down the top 25 web pages. |
13 | 15 |
14 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 16 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
15 test = smoothness.Smoothness | 17 test = smoothness.Smoothness |
16 page_set = 'page_sets/top_25.py' | 18 page_set = page_sets.Top25PageSet |
17 | 19 |
18 | 20 |
19 @test.Disabled('linux', 'mac', 'win') # crbug.com/368767 | 21 @test.Disabled('linux', 'mac', 'win') # crbug.com/368767 |
20 class SmoothnessToughCanvasCases(test.Test): | 22 class SmoothnessToughCanvasCases(test.Test): |
21 test = smoothness.Smoothness | 23 test = smoothness.Smoothness |
22 page_set = 'page_sets/tough_canvas_cases.py' | 24 page_set = page_sets.ToughCanvasCasesPageSet |
23 | 25 |
24 | 26 |
25 @test.Disabled # crbug.com/373812 | 27 @test.Disabled # crbug.com/373812 |
26 class SmoothnessToughWebGLCases(test.Test): | 28 class SmoothnessToughWebGLCases(test.Test): |
27 test = smoothness.Smoothness | 29 test = smoothness.Smoothness |
28 page_set = 'page_sets/tough_webgl_cases.py' | 30 page_set = page_sets.ToughWebglCasesPageSet |
29 | 31 |
30 | 32 |
31 class SmoothnessMaps(test.Test): | 33 class SmoothnessMaps(test.Test): |
32 test = smoothness.Smoothness | 34 test = smoothness.Smoothness |
33 page_set = 'page_sets/maps.py' | 35 page_set = page_sets.MapsPageSet |
34 | 36 |
35 | 37 |
36 class SmoothnessKeyMobileSites(test.Test): | 38 class SmoothnessKeyMobileSites(test.Test): |
37 """Measures rendering statistics while scrolling down the key mobile sites. | 39 """Measures rendering statistics while scrolling down the key mobile sites. |
38 | 40 |
39 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 41 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
40 test = smoothness.Smoothness | 42 test = smoothness.Smoothness |
41 page_set = 'page_sets/key_mobile_sites.py' | 43 page_set = page_sets.KeyMobileSitesPageSet |
42 | 44 |
43 | 45 |
44 @test.Disabled('android', 'mac') # crbug.com/350692, crbug.com/368767 | 46 @test.Disabled('android', 'mac') # crbug.com/350692, crbug.com/368767 |
45 class SmoothnessToughAnimationCases(test.Test): | 47 class SmoothnessToughAnimationCases(test.Test): |
46 test = smoothness.Smoothness | 48 test = smoothness.Smoothness |
47 page_set = 'page_sets/tough_animation_cases.py' | 49 page_set = page_sets.ToughAnimationCasesPageSet |
48 | 50 |
49 | 51 |
50 class SmoothnessKeySilkCases(test.Test): | 52 class SmoothnessKeySilkCases(test.Test): |
51 """Measures rendering statistics for the key silk cases without GPU | 53 """Measures rendering statistics for the key silk cases without GPU |
52 rasterization | 54 rasterization |
53 """ | 55 """ |
54 test = smoothness.Smoothness | 56 test = smoothness.Smoothness |
55 page_set = 'page_sets/key_silk_cases.py' | 57 page_set = page_sets.KeySilkCasesPageSet |
56 | 58 |
57 | 59 |
58 class SmoothnessFastPathKeySilkCases(test.Test): | 60 class SmoothnessFastPathKeySilkCases(test.Test): |
59 """Measures rendering statistics for the key silk cases without GPU | 61 """Measures rendering statistics for the key silk cases without GPU |
60 rasterization using bleeding edge rendering fast paths. | 62 rasterization using bleeding edge rendering fast paths. |
61 """ | 63 """ |
62 tag = 'fast_path' | 64 tag = 'fast_path' |
63 test = smoothness.Smoothness | 65 test = smoothness.Smoothness |
64 page_set = 'page_sets/key_silk_cases.py' | 66 page_set = page_sets.KeySilkCasesPageSet |
65 def CustomizeBrowserOptions(self, options): | 67 def CustomizeBrowserOptions(self, options): |
66 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 68 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
67 | 69 |
68 | 70 |
69 @test.Disabled('android') # crbug.com/363783 | 71 @test.Disabled('android') # crbug.com/363783 |
70 class SmoothnessGpuRasterizationTop25(test.Test): | 72 class SmoothnessGpuRasterizationTop25(test.Test): |
71 """Measures rendering statistics for the top 25 with GPU rasterization | 73 """Measures rendering statistics for the top 25 with GPU rasterization |
72 """ | 74 """ |
73 tag = 'gpu_rasterization' | 75 tag = 'gpu_rasterization' |
74 test = smoothness.Smoothness | 76 test = smoothness.Smoothness |
75 page_set = 'page_sets/top_25.py' | 77 page_set = page_sets.Top25PageSet |
76 def CustomizeBrowserOptions(self, options): | 78 def CustomizeBrowserOptions(self, options): |
77 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 79 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
78 | 80 |
79 | 81 |
80 @test.Disabled('android') # crbug.com/363783 | 82 @test.Disabled('android') # crbug.com/363783 |
81 class SmoothnessGpuRasterizationKeyMobileSites(test.Test): | 83 class SmoothnessGpuRasterizationKeyMobileSites(test.Test): |
82 """Measures rendering statistics for the key mobile sites with GPU | 84 """Measures rendering statistics for the key mobile sites with GPU |
83 rasterization | 85 rasterization |
84 """ | 86 """ |
85 tag = 'gpu_rasterization' | 87 tag = 'gpu_rasterization' |
86 test = smoothness.Smoothness | 88 test = smoothness.Smoothness |
87 page_set = 'page_sets/key_mobile_sites.py' | 89 page_set = page_sets.KeyMobileSitesPageSet |
88 def CustomizeBrowserOptions(self, options): | 90 def CustomizeBrowserOptions(self, options): |
89 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 91 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
90 | 92 |
91 | 93 |
92 class SmoothnessGpuRasterizationKeySilkCases(test.Test): | 94 class SmoothnessGpuRasterizationKeySilkCases(test.Test): |
93 """Measures rendering statistics for the key silk cases with GPU rasterization | 95 """Measures rendering statistics for the key silk cases with GPU rasterization |
94 """ | 96 """ |
95 tag = 'gpu_rasterization' | 97 tag = 'gpu_rasterization' |
96 test = smoothness.Smoothness | 98 test = smoothness.Smoothness |
97 page_set = 'page_sets/key_silk_cases.py' | 99 page_set = page_sets.KeySilkCasesPageSet |
98 def CustomizeBrowserOptions(self, options): | 100 def CustomizeBrowserOptions(self, options): |
99 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 101 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
100 | 102 |
101 | 103 |
102 class SmoothnessFastPathGpuRasterizationKeySilkCases( | 104 class SmoothnessFastPathGpuRasterizationKeySilkCases( |
103 SmoothnessGpuRasterizationKeySilkCases): | 105 SmoothnessGpuRasterizationKeySilkCases): |
104 """Measures rendering statistics for the key silk cases with GPU rasterization | 106 """Measures rendering statistics for the key silk cases with GPU rasterization |
105 using bleeding edge rendering fast paths. | 107 using bleeding edge rendering fast paths. |
106 """ | 108 """ |
107 tag = 'fast_path_gpu_rasterization' | 109 tag = 'fast_path_gpu_rasterization' |
108 test = smoothness.Smoothness | 110 test = smoothness.Smoothness |
109 page_set = 'page_sets/key_silk_cases.py' | 111 page_set = page_sets.KeySilkCasesPageSet |
110 def CustomizeBrowserOptions(self, options): | 112 def CustomizeBrowserOptions(self, options): |
111 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ | 113 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ |
112 CustomizeBrowserOptions(options) | 114 CustomizeBrowserOptions(options) |
113 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 115 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
114 | 116 |
115 | 117 |
116 @test.Enabled('android') | 118 @test.Enabled('android') |
117 class SmoothnessToughPinchZoomCases(test.Test): | 119 class SmoothnessToughPinchZoomCases(test.Test): |
118 """Measures rendering statistics for pinch-zooming into the tough pinch zoom | 120 """Measures rendering statistics for pinch-zooming into the tough pinch zoom |
119 cases | 121 cases |
120 """ | 122 """ |
121 test = smoothness.Smoothness | 123 test = smoothness.Smoothness |
122 page_set = 'page_sets/tough_pinch_zoom_cases.py' | 124 page_set = page_sets.ToughPinchZoomCasesPageSet |
123 | 125 |
124 | 126 |
125 @test.Disabled # crbug.com/370725 | 127 @test.Disabled # crbug.com/370725 |
126 class SmoothnessPolymer(test.Test): | 128 class SmoothnessPolymer(test.Test): |
127 """Measures rendering statistics for Polymer cases. | 129 """Measures rendering statistics for Polymer cases. |
128 """ | 130 """ |
129 test = smoothness.Smoothness | 131 test = smoothness.Smoothness |
130 page_set = 'page_sets/polymer.py' | 132 page_set = page_sets.PolymerPageSet |
131 | 133 |
132 | 134 |
133 @test.Disabled # crbug.com/370725 | 135 @test.Disabled # crbug.com/370725 |
134 class SmoothnessFastPathPolymer(test.Test): | 136 class SmoothnessFastPathPolymer(test.Test): |
135 """Measures rendering statistics for the Polymer cases without GPU | 137 """Measures rendering statistics for the Polymer cases without GPU |
136 rasterization using bleeding edge rendering fast paths. | 138 rasterization using bleeding edge rendering fast paths. |
137 """ | 139 """ |
138 tag = 'fast_path' | 140 tag = 'fast_path' |
139 test = smoothness.Smoothness | 141 test = smoothness.Smoothness |
140 page_set = 'page_sets/polymer.py' | 142 page_set = page_sets.PolymerPageSet |
141 def CustomizeBrowserOptions(self, options): | 143 def CustomizeBrowserOptions(self, options): |
142 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 144 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
143 | 145 |
144 | 146 |
145 @test.Disabled # crbug.com/370725 | 147 @test.Disabled # crbug.com/370725 |
146 class SmoothnessGpuRasterizationPolymer(test.Test): | 148 class SmoothnessGpuRasterizationPolymer(test.Test): |
147 """Measures rendering statistics for the Polymer cases with GPU rasterization | 149 """Measures rendering statistics for the Polymer cases with GPU rasterization |
148 """ | 150 """ |
149 tag = 'gpu_rasterization' | 151 tag = 'gpu_rasterization' |
150 test = smoothness.Smoothness | 152 test = smoothness.Smoothness |
151 page_set = 'page_sets/polymer.py' | 153 page_set = page_sets.PolymerPageSet |
152 def CustomizeBrowserOptions(self, options): | 154 def CustomizeBrowserOptions(self, options): |
153 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 155 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
154 | 156 |
155 | 157 |
156 @test.Disabled # crbug.com/370725 | 158 @test.Disabled # crbug.com/370725 |
157 class SmoothnessFastPathGpuRasterizationPolymer( | 159 class SmoothnessFastPathGpuRasterizationPolymer( |
158 SmoothnessGpuRasterizationPolymer): | 160 SmoothnessGpuRasterizationPolymer): |
159 """Measures rendering statistics for the Polymer cases with GPU rasterization | 161 """Measures rendering statistics for the Polymer cases with GPU rasterization |
160 using bleeding edge rendering fast paths. | 162 using bleeding edge rendering fast paths. |
161 """ | 163 """ |
162 tag = 'fast_path_gpu_rasterization' | 164 tag = 'fast_path_gpu_rasterization' |
163 test = smoothness.Smoothness | 165 test = smoothness.Smoothness |
164 page_set = 'page_sets/polymer.py' | 166 page_set = page_sets.PolymerPageSet |
165 def CustomizeBrowserOptions(self, options): | 167 def CustomizeBrowserOptions(self, options): |
166 super(SmoothnessFastPathGpuRasterizationPolymer, self). \ | 168 super(SmoothnessFastPathGpuRasterizationPolymer, self). \ |
167 CustomizeBrowserOptions(options) | 169 CustomizeBrowserOptions(options) |
168 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 170 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
OLD | NEW |