| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 def _CheckIdenticalFiles(input_api, output_api): | 58 def _CheckIdenticalFiles(input_api, output_api): |
| 59 """Verifies that certain files are identical in various locations. | 59 """Verifies that certain files are identical in various locations. |
| 60 | 60 |
| 61 These files should always be updated together. If this list is modified, | 61 These files should always be updated together. If this list is modified, |
| 62 consider also changing the list of files to copy from web-platform-tests | 62 consider also changing the list of files to copy from web-platform-tests |
| 63 when importing in Tools/Scripts/webkitpy/deps_updater.py. | 63 when importing in Tools/Scripts/webkitpy/deps_updater.py. |
| 64 """ | 64 """ |
| 65 dirty_files = set(input_api.LocalPaths()) | 65 dirty_files = set(input_api.LocalPaths()) |
| 66 | 66 |
| 67 # TODO(tkent): Remove vendor-prefix.js, testharnessreport.js, and |
| 68 # WebIDLParser.js from |groups| after enabling WPTServe. |
| 67 groups = [ | 69 groups = [ |
| 68 ('imported/wpt/common/vendor-prefix.js', 'resources/vendor-prefix.js'), | 70 ('imported/wpt/common/vendor-prefix.js', 'resources/vendor-prefix.js'), |
| 69 ('imported/wpt/resources/idlharness.js', 'resources/idlharness.js'), | 71 ('imported/wpt/resources/idlharness.js', 'resources/idlharness.js'), |
| 70 ('imported/wpt/resources/testharness.js', 'resources/testharness.js'), | 72 ('imported/wpt/resources/testharness.js', 'resources/testharness.js'), |
| 71 ('imported/wpt/resources/testharnessreport.js', 'resources/testharnessre
port.js'), | 73 ('imported/wpt/resources/testharnessreport.js', 'resources/testharnessre
port.js'), |
| 72 ('imported/wpt/resources/WebIDLParser.js', 'resources/WebIDLParser.js'), | 74 ('imported/wpt/resources/WebIDLParser.js', 'resources/WebIDLParser.js'), |
| 73 ] | 75 ] |
| 74 | 76 |
| 75 def _absolute_path(s): | 77 def _absolute_path(s): |
| 76 return input_api.os_path.join(input_api.PresubmitLocalPath(), *s.split('
/')) | 78 return input_api.os_path.join(input_api.PresubmitLocalPath(), *s.split('
/')) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 95 results.extend(_CheckTestharnessResults(input_api, output_api)) | 97 results.extend(_CheckTestharnessResults(input_api, output_api)) |
| 96 results.extend(_CheckIdenticalFiles(input_api, output_api)) | 98 results.extend(_CheckIdenticalFiles(input_api, output_api)) |
| 97 return results | 99 return results |
| 98 | 100 |
| 99 | 101 |
| 100 def CheckChangeOnCommit(input_api, output_api): | 102 def CheckChangeOnCommit(input_api, output_api): |
| 101 results = [] | 103 results = [] |
| 102 results.extend(_CheckTestharnessResults(input_api, output_api)) | 104 results.extend(_CheckTestharnessResults(input_api, output_api)) |
| 103 results.extend(_CheckIdenticalFiles(input_api, output_api)) | 105 results.extend(_CheckIdenticalFiles(input_api, output_api)) |
| 104 return results | 106 return results |
| OLD | NEW |