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

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

Issue 24451002: [telemetry] Support absolute paths by changing file:/// to file://. More robust file path handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test on mac, apparently /tmp is a symlink to /private/tmp Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/webgl_robustness.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/webgl_robustness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698