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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/tools/find_js_files.py

Issue 304793002: Support automatically resolving dependencies in javascript tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: rebase on top of Dominic's submitted test. Created 6 years, 6 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
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 '''Scans one or more directory trees for .js files, printing filenames,
8 relative to the current directory on stdout.
9 '''
10
11 import optparse
12 import os
13 import sys
14
15 _SCRIPT_DIR = os.path.realpath(os.path.dirname(__file__))
16 _CHROME_SOURCE = os.path.realpath(
17 os.path.join(_SCRIPT_DIR, *[os.path.pardir] * 6))
18 sys.path.insert(0, os.path.join(
dmazzoni 2014/05/30 17:03:42 nit: indent
19 _CHROME_SOURCE, ('chrome/third_party/chromevox/third_party/' +
20 'closure-library/closure/bin/build')))
21 import treescan
22
23
24 def main():
25 parser = optparse.OptionParser(description=__doc__)
26 parser.usage = '%prog <tree_root>...'
27 _, args = parser.parse_args()
28 for root in args:
29 print '\n'.join(treescan.ScanTreeForJsFiles(root))
30
31
32 if __name__ == '__main__':
33 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698