| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """This module is used to find all of the layout test files used by Chromium | 6 """This module is used to find all of the layout test files used by Chromium |
| 7 (across all platforms). It exposes one public function - GatherTestFiles() - | 7 (across all platforms). It exposes one public function - GatherTestFiles() - |
| 8 which takes an optional list of paths. If a list is passed in, the returned | 8 which takes an optional list of paths. If a list is passed in, the returned |
| 9 list of test files is constrained to those found under the paths passed in, | 9 list of test files is constrained to those found under the paths passed in, |
| 10 i.e. calling GatherTestFiles(["LayoutTests/fast"]) will only return files | 10 i.e. calling GatherTestFiles(["LayoutTests/fast"]) will only return files |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 test_files.add(filename) | 62 test_files.add(filename) |
| 63 | 63 |
| 64 return test_files | 64 return test_files |
| 65 | 65 |
| 66 | 66 |
| 67 def _HasSupportedExtension(filename): | 67 def _HasSupportedExtension(filename): |
| 68 """Return true if filename is one of the file extensions we want to run a | 68 """Return true if filename is one of the file extensions we want to run a |
| 69 test on.""" | 69 test on.""" |
| 70 extension = os.path.splitext(filename)[1] | 70 extension = os.path.splitext(filename)[1] |
| 71 return extension in _supported_file_extensions | 71 return extension in _supported_file_extensions |
| OLD | NEW |