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

Side by Side Diff: content/test/gpu/gpu_tests/hardware_accelerated_feature.py

Issue 311193003: [telemetry] Cleanups for benchmarks importing page sets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove description fo' realz. (from gpu tests) Created 6 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
OLDNEW
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 test 6 from telemetry import test
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class HardwareAcceleratedFeature(test.Test): 46 class HardwareAcceleratedFeature(test.Test):
47 """Tests GPU acceleration is reported as active for various features""" 47 """Tests GPU acceleration is reported as active for various features"""
48 test = _HardwareAcceleratedFeatureValidator 48 test = _HardwareAcceleratedFeatureValidator
49 49
50 def CreateExpectations(self, page_set): 50 def CreateExpectations(self, page_set):
51 return expectations.HardwareAcceleratedFeatureExpectations() 51 return expectations.HardwareAcceleratedFeatureExpectations()
52 52
53 def CreatePageSet(self, options): 53 def CreatePageSet(self, options):
54 features = ['WebGL', 'Canvas'] 54 features = ['WebGL', 'Canvas']
55 55
56 ps = page_set.PageSet( 56 ps = page_set.PageSet(user_agent_type='desktop', file_path='')
57 description='Tests GPU acceleration is reported as active',
58 user_agent_type='desktop',
59 file_path='')
60 57
61 for feature in features: 58 for feature in features:
62 ps.AddPage(ChromeGpuPage(page_set=ps, feature=feature)) 59 ps.AddPage(ChromeGpuPage(page_set=ps, feature=feature))
63 return ps 60 return ps
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/context_lost.py ('k') | content/test/gpu/gpu_tests/screenshot_sync.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698