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 import hardware_accelerated_feature_expectations as expectations | 4 import hardware_accelerated_feature_expectations as expectations |
5 | 5 |
6 from telemetry import benchmark | 6 from telemetry import benchmark |
7 from telemetry.page import page as page_module | 7 from telemetry.page import page as page_module |
8 from telemetry.page import page_set | 8 from telemetry.page import page_set |
9 from telemetry.page import page_test | 9 from telemetry.page import page_test |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 def CreateExpectations(self): | 52 def CreateExpectations(self): |
53 return expectations.HardwareAcceleratedFeatureExpectations() | 53 return expectations.HardwareAcceleratedFeatureExpectations() |
54 | 54 |
55 def CreatePageSet(self, options): | 55 def CreatePageSet(self, options): |
56 features = ['WebGL', 'Canvas'] | 56 features = ['WebGL', 'Canvas'] |
57 | 57 |
58 ps = page_set.PageSet(user_agent_type='desktop', file_path='') | 58 ps = page_set.PageSet(user_agent_type='desktop', file_path='') |
59 | 59 |
60 for feature in features: | 60 for feature in features: |
61 ps.AddPage(ChromeGpuPage(page_set=ps, feature=feature)) | 61 ps.AddUserStory(ChromeGpuPage(page_set=ps, feature=feature)) |
62 return ps | 62 return ps |
OLD | NEW |