Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: webkit/tools/layout_tests/webkitpy/layout_package/test_files.py

Issue 545145: Move the layout test scripts into a 'webkitpy' subdirectory in preparation... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: try to de-confuse svn and the try bots Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698