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

Side by Side Diff: chrome/browser/web_dev_style/closure_lint_test.py

Issue 1418513007: Move find_depot_tools.py to build/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fixes Created 5 years, 2 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
« no previous file with comments | « build/vs_toolchain.py ('k') | chrome/browser/web_dev_style/css_checker_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 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 import js_checker 6 import js_checker
7 from os import path as os_path 7 from os import path as os_path
8 import re 8 import re
9 from sys import path as sys_path 9 from sys import path as sys_path
10 import unittest 10 import unittest
11 11
12 _HERE = os_path.dirname(os_path.abspath(__file__)) 12 _HERE = os_path.dirname(os_path.abspath(__file__))
13 sys_path.append(os_path.join(_HERE, '..', '..', '..', 'tools')) 13 sys_path.append(os_path.join(_HERE, '..', '..', '..', 'build'))
14 14
15 import find_depot_tools # pylint: disable=W0611 15 import find_depot_tools # pylint: disable=W0611
16 from testing_support.super_mox import SuperMoxTestBase 16 from testing_support.super_mox import SuperMoxTestBase
17 17
18 18
19 class ClosureLintTest(SuperMoxTestBase): 19 class ClosureLintTest(SuperMoxTestBase):
20 def setUp(self): 20 def setUp(self):
21 SuperMoxTestBase.setUp(self) 21 SuperMoxTestBase.setUp(self)
22 22
23 input_api = self.mox.CreateMockAnything() 23 input_api = self.mox.CreateMockAnything()
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 '\n', 81 '\n',
82 "if (document.readystate == 'complete') loaded.resolve();\n", 82 "if (document.readystate == 'complete') loaded.resolve();\n",
83 ], 83 ],
84 ] 84 ]
85 for source in sources: 85 for source in sources:
86 self.ShouldPassClosureLint(source) 86 self.ShouldPassClosureLint(source)
87 87
88 88
89 if __name__ == '__main__': 89 if __name__ == '__main__':
90 unittest.main() 90 unittest.main()
OLDNEW
« no previous file with comments | « build/vs_toolchain.py ('k') | chrome/browser/web_dev_style/css_checker_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698