| OLD | NEW |
| 1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 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 | 4 |
| 5 """Presubmit script for Chromium WebUI resources. | 5 """Presubmit script for Chromium WebUI resources. |
| 6 | 6 |
| 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| 8 for more details about the presubmit API built into depot_tools, and see | 8 for more details about the presubmit API built into depot_tools, and see |
| 9 http://www.chromium.org/developers/web-development-style-guide for the rules | 9 http://www.chromium.org/developers/web-development-style-guide for the rules |
| 10 we're checking against here. | 10 we're checking against here. |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 'datetime-edit-text', | 203 'datetime-edit-text', |
| 204 'datetime-edit-week-field', | 204 'datetime-edit-week-field', |
| 205 'datetime-edit-year-field', | 205 'datetime-edit-year-field', |
| 206 'details-marker', | 206 'details-marker', |
| 207 'file-upload-button', | 207 'file-upload-button', |
| 208 'first-letter', | 208 'first-letter', |
| 209 'first-line', | 209 'first-line', |
| 210 'inner-spin-button', | 210 'inner-spin-button', |
| 211 'input-placeholder', | 211 'input-placeholder', |
| 212 'input-speech-button', | 212 'input-speech-button', |
| 213 'keygen-select', | |
| 214 'media-slider-container', | 213 'media-slider-container', |
| 215 'media-slider-thumb', | 214 'media-slider-thumb', |
| 216 'meter-bar', | 215 'meter-bar', |
| 217 'meter-even-less-good-value', | 216 'meter-even-less-good-value', |
| 218 'meter-inner-element', | 217 'meter-inner-element', |
| 219 'meter-optimum-value', | 218 'meter-optimum-value', |
| 220 'meter-suboptimum-value', | 219 'meter-suboptimum-value', |
| 221 'progress-bar', | 220 'progress-bar', |
| 222 'progress-inner-element', | 221 'progress-inner-element', |
| 223 'progress-value', | 222 'progress-value', |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 error += check['after'](line) | 420 error += check['after'](line) |
| 422 check_errors.append(error) | 421 check_errors.append(error) |
| 423 if len(check_errors) > 0: | 422 if len(check_errors) > 0: |
| 424 file_errors.append('- %s\n%s' % | 423 file_errors.append('- %s\n%s' % |
| 425 (check['desc'], '\n'.join(check_errors))) | 424 (check['desc'], '\n'.join(check_errors))) |
| 426 if file_errors: | 425 if file_errors: |
| 427 results.append(self.output_api.PresubmitPromptWarning( | 426 results.append(self.output_api.PresubmitPromptWarning( |
| 428 '%s:\n%s' % (f[0], '\n\n'.join(file_errors)))) | 427 '%s:\n%s' % (f[0], '\n\n'.join(file_errors)))) |
| 429 | 428 |
| 430 return results | 429 return results |
| OLD | NEW |