| OLD | NEW |
| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 # We only check min-version >= 2.0.0 for the top level list. | 390 # We only check min-version >= 2.0.0 for the top level list. |
| 390 test_paths += cls._ParseTests( | 391 test_paths += cls._ParseTests( |
| 391 include_path, version, webgl2_only, min_version_to_compare) | 392 include_path, version, webgl2_only, min_version_to_compare) |
| 392 else: | 393 else: |
| 393 test = os.path.join(current_dir, test_name) | 394 test = os.path.join(current_dir, test_name) |
| 394 if webgl_version > 1: | 395 if webgl_version > 1: |
| 395 test += '?webglVersion=' + str(webgl_version) | 396 test += '?webglVersion=' + str(webgl_version) |
| 396 test_paths.append(test) | 397 test_paths.append(test) |
| 397 | 398 |
| 398 return test_paths | 399 return test_paths |
| 400 |
| 401 def load_tests(loader, tests, pattern): |
| 402 del loader, tests, pattern # Unused. |
| 403 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) |
| OLD | NEW |