| Index: third_party/WebKit/Tools/Scripts/webkitpy/formatter/main_unittest.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/formatter/main_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/formatter/main_unittest.py
|
| index 0cfb5aedee96d42f6f182e3444dabc05d26b8da0..963aedf738def71cfca29b967b44d716b21efe62 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/formatter/main_unittest.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/formatter/main_unittest.py
|
| @@ -133,3 +133,20 @@ def f():
|
| """
|
| return x
|
| ''')
|
| +
|
| + def test_format_docstrings_indentation(self):
|
| + host = MockSystemHost()
|
| + host.stdin = StringIO.StringIO('''
|
| +def f():
|
| + """This is a docstring
|
| + With extra indentation on this line.
|
| +
|
| + """
|
| +''')
|
| + main(host, ['-'])
|
| + self.assertMultiLineEqual(host.stdout.getvalue(), '''
|
| +def f():
|
| + """This is a docstring
|
| + With extra indentation on this line.
|
| + """
|
| +''')
|
|
|