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

Unified Diff: PRESUBMIT_test_mocks.py

Issue 2917473002: js_checker.py: Restore smoke tests for linting violations. (Closed)
Patch Set: Address nits. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/web_dev_style/js_checker.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT_test_mocks.py
diff --git a/PRESUBMIT_test_mocks.py b/PRESUBMIT_test_mocks.py
index c269deec1fba066392fd1252ab30fac2715e4ea5..e2e43e35372700e182081d511d096f560625ae56 100644
--- a/PRESUBMIT_test_mocks.py
+++ b/PRESUBMIT_test_mocks.py
@@ -27,6 +27,7 @@ class MockInputApi(object):
self.files = []
self.is_committing = False
self.change = MockChange([])
+ self.presubmit_local_path = os.path.dirname(__file__)
def AffectedFiles(self, file_filter=None, include_deletes=False):
return self.files
@@ -38,7 +39,7 @@ class MockInputApi(object):
return self.files
def PresubmitLocalPath(self):
- return os.path.dirname(__file__)
+ return self.presubmit_local_path
def ReadFile(self, filename, mode='rU'):
if hasattr(filename, 'AbsoluteLocalPath'):
« no previous file with comments | « no previous file | tools/web_dev_style/js_checker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698