| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |