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

Side by Side Diff: tools/perf_expectations/tests/perf_expectations_unittest.py

Issue 8314002: Support updating perf_expectations.json on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « tools/perf_expectations/make_expectations.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Verify perf_expectations.json can be loaded using simplejson. 7 """Verify perf_expectations.json can be loaded using simplejson.
8 8
9 perf_expectations.json is a JSON-formatted file. This script verifies 9 perf_expectations.json is a JSON-formatted file. This script verifies
10 that simplejson can load it correctly. It should catch most common 10 that simplejson can load it correctly. It should catch most common
11 formatting problems. 11 formatting problems.
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 config = LoadJsonFile(CONFIG_JSON) 157 config = LoadJsonFile(CONFIG_JSON)
158 # Require the following keys. 158 # Require the following keys.
159 if 'base_url' not in config: 159 if 'base_url' not in config:
160 raise Exception('base_url not specified in config file') 160 raise Exception('base_url not specified in config file')
161 if 'perf_file' not in config: 161 if 'perf_file' not in config:
162 raise Exception('perf_file not specified in config file') 162 raise Exception('perf_file not specified in config file')
163 163
164 164
165 if __name__ == '__main__': 165 if __name__ == '__main__':
166 unittest.main() 166 unittest.main()
OLDNEW
« no previous file with comments | « tools/perf_expectations/make_expectations.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698