| OLD | NEW |
| 1 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2009 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 | 4 |
| 5 """A helper class for reading in and dealing with tests expectations | 5 """A helper class for reading in and dealing with tests expectations |
| 6 for layout tests. | 6 for layout tests. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 import logging | 9 import logging |
| 10 import os | 10 import os |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 def _AddError(self, lineno, msg, path): | 774 def _AddError(self, lineno, msg, path): |
| 775 """Reports an error that will prevent running the tests. Does not | 775 """Reports an error that will prevent running the tests. Does not |
| 776 immediately raise an exception because we'd like to aggregate all the | 776 immediately raise an exception because we'd like to aggregate all the |
| 777 errors so they can all be printed out.""" | 777 errors so they can all be printed out.""" |
| 778 self._errors.append('\nLine:%s %s %s' % (lineno, msg, path)) | 778 self._errors.append('\nLine:%s %s %s' % (lineno, msg, path)) |
| 779 | 779 |
| 780 def _LogNonFatalError(self, lineno, msg, path): | 780 def _LogNonFatalError(self, lineno, msg, path): |
| 781 """Reports an error that will not prevent running the tests. These are | 781 """Reports an error that will not prevent running the tests. These are |
| 782 still errors, but not bad enough to warrant breaking test running.""" | 782 still errors, but not bad enough to warrant breaking test running.""" |
| 783 self._non_fatal_errors.append('Line:%s %s %s' % (lineno, msg, path)) | 783 self._non_fatal_errors.append('Line:%s %s %s' % (lineno, msg, path)) |
| OLD | NEW |