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_set | 13 from telemetry.page import page_set |
14 from telemetry.page import page as page_module | 14 from telemetry.page import page as page_module |
15 from telemetry.page import page_test | 15 from telemetry.page import page_test |
16 # pylint: disable=W0401,W0614 | |
17 from telemetry.page.actions.all_page_actions import * | |
18 | 16 |
19 | 17 |
20 conformance_path = os.path.join( | 18 conformance_path = os.path.join( |
21 util.GetChromiumSrcDir(), | 19 util.GetChromiumSrcDir(), |
22 'third_party', 'webgl', 'src', 'sdk', 'tests') | 20 'third_party', 'webgl', 'src', 'sdk', 'tests') |
23 | 21 |
24 conformance_harness_script = r""" | 22 conformance_harness_script = r""" |
25 var testHarness = {}; | 23 var testHarness = {}; |
26 testHarness._allTestSucceeded = true; | 24 testHarness._allTestSucceeded = true; |
27 testHarness._messages = ''; | 25 testHarness._messages = ''; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 163 |
166 if '.txt' in test_name: | 164 if '.txt' in test_name: |
167 include_path = os.path.join(current_dir, test_name) | 165 include_path = os.path.join(current_dir, test_name) |
168 test_paths += WebglConformance._ParseTests( | 166 test_paths += WebglConformance._ParseTests( |
169 include_path, version) | 167 include_path, version) |
170 else: | 168 else: |
171 test = os.path.join(current_dir, test_name) | 169 test = os.path.join(current_dir, test_name) |
172 test_paths.append(test) | 170 test_paths.append(test) |
173 | 171 |
174 return test_paths | 172 return test_paths |
OLD | NEW |