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 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 'pages': [] | 97 'pages': [] |
98 } | 98 } |
99 | 99 |
100 pages = page_set_dict['pages'] | 100 pages = page_set_dict['pages'] |
101 | 101 |
102 for test in tests: | 102 for test in tests: |
103 pages.append({ | 103 pages.append({ |
104 'name': 'WebglConformance.%s' % | 104 'name': 'WebglConformance.%s' % |
105 test.replace('/', '_').replace('-', '_'). | 105 test.replace('/', '_').replace('-', '_'). |
106 replace('\\', '_').rpartition('.')[0].replace('.', '_'), | 106 replace('\\', '_').rpartition('.')[0].replace('.', '_'), |
107 'url': 'file:///' + test, | 107 'url': 'file://' + test, |
108 'script_to_evaluate_on_commit': conformance_harness_script, | 108 'script_to_evaluate_on_commit': conformance_harness_script, |
109 'navigate_steps': [ | 109 'navigate_steps': [ |
110 {'action': 'navigate'}, | 110 {'action': 'navigate'}, |
111 { | 111 { |
112 'action': 'wait', | 112 'action': 'wait', |
113 'javascript': 'webglTestHarness._finished', | 113 'javascript': 'webglTestHarness._finished', |
114 'timeout': 120 | 114 'timeout': 120 |
115 } | 115 } |
116 ] | 116 ] |
117 }) | 117 }) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 if '.txt' in test_name: | 160 if '.txt' in test_name: |
161 include_path = os.path.join(current_dir, test_name) | 161 include_path = os.path.join(current_dir, test_name) |
162 test_paths += WebglConformance._ParseTests( | 162 test_paths += WebglConformance._ParseTests( |
163 include_path, version) | 163 include_path, version) |
164 else: | 164 else: |
165 test = os.path.join(current_dir, test_name) | 165 test = os.path.join(current_dir, test_name) |
166 test_paths.append(test) | 166 test_paths.append(test) |
167 | 167 |
168 return test_paths | 168 return test_paths |
OLD | NEW |