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

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

Issue 2616253002: Add typ boilerplate to Telemetry-based GPU tests. (Closed)
Patch Set: Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 import logging 5 import logging
6 import os 6 import os
7 import sys
7 8
8 from gpu_tests import gpu_integration_test 9 from gpu_tests import gpu_integration_test
9 from gpu_tests import path_util 10 from gpu_tests import path_util
10 from gpu_tests import webgl_conformance_expectations 11 from gpu_tests import webgl_conformance_expectations
11 from gpu_tests import webgl2_conformance_expectations 12 from gpu_tests import webgl2_conformance_expectations
12 13
13 from telemetry.internal.browser import browser_finder 14 from telemetry.internal.browser import browser_finder
14 15
15 conformance_relcomps = ( 16 conformance_relcomps = (
16 'third_party', 'webgl', 'src', 'sdk', 'tests') 17 'third_party', 'webgl', 'src', 'sdk', 'tests')
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 # We only check min-version >= 2.0.0 for the top level list. 383 # We only check min-version >= 2.0.0 for the top level list.
383 test_paths += cls._ParseTests( 384 test_paths += cls._ParseTests(
384 include_path, version, webgl2_only, min_version_to_compare) 385 include_path, version, webgl2_only, min_version_to_compare)
385 else: 386 else:
386 test = os.path.join(current_dir, test_name) 387 test = os.path.join(current_dir, test_name)
387 if webgl_version > 1: 388 if webgl_version > 1:
388 test += '?webglVersion=' + str(webgl_version) 389 test += '?webglVersion=' + str(webgl_version)
389 test_paths.append(test) 390 test_paths.append(test)
390 391
391 return test_paths 392 return test_paths
393
394 def load_tests(loader, tests, pattern):
395 del loader, tests, pattern # Unused.
396 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698