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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py

Issue 2256793002: Make docstrings more consistent using format-webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make indentation of final quote based on parse tree (indentation prior to docstring node) rather th… 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/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
index 46b7d9b3755aa58165f3fe5d7e80c99ad4224ddd..e2390d0b052b018498a13c6c0b7019c48f3f13fc 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
@@ -57,7 +57,8 @@ class ErrorCollector:
def __init__(self, assert_fn, filter=None, lines_to_check=None):
"""assert_fn: a function to call when we notice a problem.
- filter: filters the errors that we are concerned about."""
+ filter: filters the errors that we are concerned about.
+ """
self._assert_fn = assert_fn
self._errors = []
self._lines_to_check = lines_to_check
@@ -237,7 +238,6 @@ class CppStyleTestBase(unittest.TestCase):
Attributes:
min_confidence: An integer that is the current minimum confidence
level for the tests.
-
"""
# FIXME: Refactor the unit tests so the confidence level is passed
@@ -362,7 +362,8 @@ class CppStyleTestBase(unittest.TestCase):
"""Checks if the two positions are equal.
position: a cpp_style.Position object.
- tuple_position: a tuple (row, column) to compare against."""
+ tuple_position: a tuple (row, column) to compare against.
+ """
self.assertEqual(position, cpp_style.Position(tuple_position[0], tuple_position[1]),
'position %s, tuple_position %s' % (position, tuple_position))

Powered by Google App Engine
This is Rietveld 408576698