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

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

Issue 1176733003: [Telemetry] Change the page's file_path param to base_dir param (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 (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 import json 4 import json
5 import optparse 5 import optparse
6 import os 6 import os
7 import sys 7 import sys
8 8
9 import webgl_conformance_expectations 9 import webgl_conformance_expectations
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 return WebglConformanceValidator() 144 return WebglConformanceValidator()
145 145
146 def CreatePageSet(self, options): 146 def CreatePageSet(self, options):
147 tests = self._ParseTests('00_test_list.txt', 147 tests = self._ParseTests('00_test_list.txt',
148 options.webgl_conformance_version, 148 options.webgl_conformance_version,
149 (options.webgl2_only == 'true')) 149 (options.webgl2_only == 'true'))
150 150
151 ps = page_set.PageSet( 151 ps = page_set.PageSet(
152 user_agent_type='desktop', 152 user_agent_type='desktop',
153 serving_dirs=[''], 153 serving_dirs=[''],
154 file_path=conformance_path) 154 base_dir=conformance_path)
155 155
156 for test in tests: 156 for test in tests:
157 ps.AddUserStory(WebglConformancePage(ps, test)) 157 ps.AddUserStory(WebglConformancePage(ps, test))
158 158
159 return ps 159 return ps
160 160
161 def CreateExpectations(self): 161 def CreateExpectations(self):
162 return webgl_conformance_expectations.WebGLConformanceExpectations( 162 return webgl_conformance_expectations.WebGLConformanceExpectations(
163 conformance_path) 163 conformance_path)
164 164
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 if '.txt' in test_name: 205 if '.txt' in test_name:
206 include_path = os.path.join(current_dir, test_name) 206 include_path = os.path.join(current_dir, test_name)
207 # We only check min-version >= 2.0.0 for the top level list. 207 # We only check min-version >= 2.0.0 for the top level list.
208 test_paths += WebglConformance._ParseTests( 208 test_paths += WebglConformance._ParseTests(
209 include_path, version, False) 209 include_path, version, False)
210 else: 210 else:
211 test = os.path.join(current_dir, test_name) 211 test = os.path.join(current_dir, test_name)
212 test_paths.append(test) 212 test_paths.append(test)
213 213
214 return test_paths 214 return test_paths
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/screenshot_sync.py ('k') | content/test/gpu/gpu_tests/webgl_robustness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698