| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 groups = [[ | 38 groups = [[ |
| 39 'imported/web-platform-tests/resources/testharness.js', | 39 'imported/web-platform-tests/resources/testharness.js', |
| 40 'resources/testharness.js', | 40 'resources/testharness.js', |
| 41 ], [ | 41 ], [ |
| 42 'imported/web-platform-tests/resources/testharnessreport.js', | 42 'imported/web-platform-tests/resources/testharnessreport.js', |
| 43 'resources/testharnessreport.js', | 43 'resources/testharnessreport.js', |
| 44 ], [ | 44 ], [ |
| 45 'imported/web-platform-tests/resources/idlharness.js', | 45 'imported/web-platform-tests/resources/idlharness.js', |
| 46 'resources/idlharness.js', | 46 'resources/idlharness.js', |
| 47 ], [ | |
| 48 'resources/testharness-helpers.js', | |
| 49 'http/tests/resources/testharness-helpers.js', | |
| 50 ]] | 47 ]] |
| 51 | 48 |
| 52 def _absolute_path(s): | 49 def _absolute_path(s): |
| 53 return input_api.os_path.join(input_api.PresubmitLocalPath(), *s.split('
/')) | 50 return input_api.os_path.join(input_api.PresubmitLocalPath(), *s.split('
/')) |
| 54 | 51 |
| 55 def _local_path(s): | 52 def _local_path(s): |
| 56 return input_api.os_path.join('third_party', 'WebKit', 'LayoutTests', *s
.split('/')) | 53 return input_api.os_path.join('third_party', 'WebKit', 'LayoutTests', *s
.split('/')) |
| 57 | 54 |
| 58 errors = [] | 55 errors = [] |
| 59 for group in groups: | 56 for group in groups: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 72 results.extend(_CheckTestharnessResults(input_api, output_api)) | 69 results.extend(_CheckTestharnessResults(input_api, output_api)) |
| 73 results.extend(_CheckIdenticalFiles(input_api, output_api)) | 70 results.extend(_CheckIdenticalFiles(input_api, output_api)) |
| 74 return results | 71 return results |
| 75 | 72 |
| 76 | 73 |
| 77 def CheckChangeOnCommit(input_api, output_api): | 74 def CheckChangeOnCommit(input_api, output_api): |
| 78 results = [] | 75 results = [] |
| 79 results.extend(_CheckTestharnessResults(input_api, output_api)) | 76 results.extend(_CheckTestharnessResults(input_api, output_api)) |
| 80 results.extend(_CheckIdenticalFiles(input_api, output_api)) | 77 results.extend(_CheckIdenticalFiles(input_api, output_api)) |
| 81 return results | 78 return results |
| OLD | NEW |