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

Side by Side Diff: media/tools/layout_tests/test_expectations.py

Issue 8672007: Fix python scripts in src/media (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
OLDNEW
1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # 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
4 # found in the LICENSE file. 3 # found in the LICENSE file.
5 4
6 """A module to analyze test expectations for Webkit layout tests.""" 5 """A module to analyze test expectations for Webkit layout tests."""
7 6
8 import re 7 import re
9 import urllib2 8 import urllib2
10 9
11 # Default Webkit SVN location for chromium test expectation file. 10 # Default Webkit SVN location for chromium test expectation file.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 line = line[0:line.rindex('//')] 146 line = line[0:line.rindex('//')]
148 for name in ALL_TE_KEYWORDS: 147 for name in ALL_TE_KEYWORDS:
149 if name in line: 148 if name in line:
150 test_expectation_info[name] = True 149 test_expectation_info[name] = True
151 test_expectation_info['Comments'] = comment_prefix + inline_comments 150 test_expectation_info['Comments'] = comment_prefix + inline_comments
152 # Store bug informations. 151 # Store bug informations.
153 bugs = re.findall(r'BUG\w+', line) 152 bugs = re.findall(r'BUG\w+', line)
154 if bugs: 153 if bugs:
155 test_expectation_info['Bugs'] = bugs 154 test_expectation_info['Bugs'] = bugs
156 return test_expectation_info 155 return test_expectation_info
OLDNEW
« no previous file with comments | « media/tools/layout_tests/layouttests_unittest.py ('k') | media/tools/layout_tests/test_expectations_history.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698