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

Unified Diff: third_party/closure_linter/closure_linter/tokenutil_test.py

Issue 2328693002: Updated linter with upstream release (2.3.19) (Closed)
Patch Set: Created 4 years, 3 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
Index: third_party/closure_linter/closure_linter/tokenutil_test.py
diff --git a/third_party/closure_linter/closure_linter/tokenutil_test.py b/third_party/closure_linter/closure_linter/tokenutil_test.py
index d5af9fac4a1e51e0a1eb93e92eae4275658b444e..c7d3854776bd483cfa0bb0622afcdde249370da0 100644
--- a/third_party/closure_linter/closure_linter/tokenutil_test.py
+++ b/third_party/closure_linter/closure_linter/tokenutil_test.py
@@ -99,9 +99,13 @@ start1. // comment
tokenutil.GetPreviousCodeToken(_GetTokenStartingWith('start1')))
self.assertEquals(
- 'start1.',
+ '.',
tokenutil.GetPreviousCodeToken(_GetTokenStartingWith('end1')).string)
+ self.assertEquals(
+ 'start1',
+ tokenutil.GetPreviousCodeToken(_GetTokenStartingWith('.')).string)
+
def testGetNextCodeToken(self):
tokens = testutil.TokenizeSource("""
@@ -116,10 +120,14 @@ start1. // comment
return t
self.assertEquals(
- 'end1',
+ '.',
tokenutil.GetNextCodeToken(_GetTokenStartingWith('start1')).string)
self.assertEquals(
+ 'end1',
+ tokenutil.GetNextCodeToken(_GetTokenStartingWith('.')).string)
+
+ self.assertEquals(
None,
tokenutil.GetNextCodeToken(_GetTokenStartingWith('end1')))

Powered by Google App Engine
This is Rietveld 408576698