OLD | NEW |
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 |
11 from telemetry import benchmark as benchmark_module | 11 from telemetry import benchmark as benchmark_module |
12 from telemetry.core import util | 12 from telemetry.core import util |
| 13 from telemetry.page import page as page_module |
13 from telemetry.page import page_set | 14 from telemetry.page import page_set |
14 from telemetry.page import page as page_module | |
15 from telemetry.page import page_test | 15 from telemetry.page import page_test |
16 | 16 |
17 | 17 |
18 conformance_path = os.path.join( | 18 conformance_path = os.path.join( |
19 util.GetChromiumSrcDir(), | 19 util.GetChromiumSrcDir(), |
20 'third_party', 'webgl', 'src', 'sdk', 'tests') | 20 'third_party', 'webgl', 'src', 'sdk', 'tests') |
21 | 21 |
22 conformance_harness_script = r""" | 22 conformance_harness_script = r""" |
23 var testHarness = {}; | 23 var testHarness = {}; |
24 testHarness._allTestSucceeded = true; | 24 testHarness._allTestSucceeded = true; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 if '.txt' in test_name: | 168 if '.txt' in test_name: |
169 include_path = os.path.join(current_dir, test_name) | 169 include_path = os.path.join(current_dir, test_name) |
170 test_paths += WebglConformance._ParseTests( | 170 test_paths += WebglConformance._ParseTests( |
171 include_path, version) | 171 include_path, version) |
172 else: | 172 else: |
173 test = os.path.join(current_dir, test_name) | 173 test = os.path.join(current_dir, test_name) |
174 test_paths.append(test) | 174 test_paths.append(test) |
175 | 175 |
176 return test_paths | 176 return test_paths |
OLD | NEW |