| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 """LayoutTests/ presubmit script for Blink. | 5 """LayoutTests/ presubmit script for Blink. |
| 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 gcl. | 8 for more details about the presubmit API built into gcl. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 ], [ | 42 ], [ |
| 43 'resources/testharnessreport.js', | 43 'resources/testharnessreport.js', |
| 44 'http/tests/resources/testharnessreport.js', | 44 'http/tests/resources/testharnessreport.js', |
| 45 'http/tests/w3c/resources/testharnessreport.js', | 45 'http/tests/w3c/resources/testharnessreport.js', |
| 46 ], [ | 46 ], [ |
| 47 'resources/idlharness.js', | 47 'resources/idlharness.js', |
| 48 'http/tests/w3c/resources/idlharness.js', | 48 'http/tests/w3c/resources/idlharness.js', |
| 49 ], [ | 49 ], [ |
| 50 'resources/WebIDLParser.js', | 50 'resources/WebIDLParser.js', |
| 51 'http/tests/w3c/resources/WebIDLParser.js', | 51 'http/tests/w3c/resources/WebIDLParser.js', |
| 52 ], [ |
| 53 'resources/testharness-helpers.js', |
| 54 'http/tests/resources/testharness-helpers.js', |
| 52 ]] | 55 ]] |
| 53 | 56 |
| 54 def _absolute_path(s): | 57 def _absolute_path(s): |
| 55 return input_api.os_path.join(input_api.PresubmitLocalPath(), *s.split('
/')) | 58 return input_api.os_path.join(input_api.PresubmitLocalPath(), *s.split('
/')) |
| 56 | 59 |
| 57 def _local_path(s): | 60 def _local_path(s): |
| 58 return input_api.os_path.join('LayoutTests', *s.split('/')) | 61 return input_api.os_path.join('LayoutTests', *s.split('/')) |
| 59 | 62 |
| 60 errors = [] | 63 errors = [] |
| 61 for group in groups: | 64 for group in groups: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 74 results.extend(_CheckTestharnessResults(input_api, output_api)) | 77 results.extend(_CheckTestharnessResults(input_api, output_api)) |
| 75 results.extend(_CheckIdenticalFiles(input_api, output_api)) | 78 results.extend(_CheckIdenticalFiles(input_api, output_api)) |
| 76 return results | 79 return results |
| 77 | 80 |
| 78 | 81 |
| 79 def CheckChangeOnCommit(input_api, output_api): | 82 def CheckChangeOnCommit(input_api, output_api): |
| 80 results = [] | 83 results = [] |
| 81 results.extend(_CheckTestharnessResults(input_api, output_api)) | 84 results.extend(_CheckTestharnessResults(input_api, output_api)) |
| 82 results.extend(_CheckIdenticalFiles(input_api, output_api)) | 85 results.extend(_CheckIdenticalFiles(input_api, output_api)) |
| 83 return results | 86 return results |
| OLD | NEW |