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

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

Issue 1217813005: [Telemetry] Modify CreatePageSet to CreateStorySet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Ethan's comments Created 5 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 from datetime import datetime 4 from datetime import datetime
5 import glob 5 import glob
6 import optparse 6 import optparse
7 import os 7 import os
8 import re 8 import re
9 9
10 import cloud_storage_test_base 10 import cloud_storage_test_base
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 return 'pixel' 154 return 'pixel'
155 155
156 @classmethod 156 @classmethod
157 def AddBenchmarkCommandLineArgs(cls, group): 157 def AddBenchmarkCommandLineArgs(cls, group):
158 super(Pixel, cls).AddBenchmarkCommandLineArgs(group) 158 super(Pixel, cls).AddBenchmarkCommandLineArgs(group)
159 group.add_option('--reference-dir', 159 group.add_option('--reference-dir',
160 help='Overrides the default on-disk location for reference images ' 160 help='Overrides the default on-disk location for reference images '
161 '(only used for local testing without a cloud storage account)', 161 '(only used for local testing without a cloud storage account)',
162 default=default_reference_image_dir) 162 default=default_reference_image_dir)
163 163
164 def CreatePageSet(self, options): 164 def CreateStorySet(self, options):
165 page_set = page_sets.PixelTestsPageSet() 165 page_set = page_sets.PixelTestsPageSet()
166 for page in page_set.pages: 166 for page in page_set.pages:
167 page.script_to_evaluate_on_commit = test_harness_script 167 page.script_to_evaluate_on_commit = test_harness_script
168 return page_set 168 return page_set
169 169
170 def CreateExpectations(self): 170 def CreateExpectations(self):
171 return pixel_expectations.PixelExpectations() 171 return pixel_expectations.PixelExpectations()
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/memory_test.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