Chromium Code Reviews| Index: tests/presubmit_unittest.py |
| diff --git a/tests/presubmit_unittest.py b/tests/presubmit_unittest.py |
| index 3b814f0e97faf9e1a0d0c5e7a6098a8ee0566be5..097163b42fec9cc35a96aef0639c93603a5d6ad5 100755 |
| --- a/tests/presubmit_unittest.py |
| +++ b/tests/presubmit_unittest.py |
| @@ -1828,6 +1828,12 @@ class CannedChecksUnittest(PresubmitTestsBase): |
| self.ContentTest(check, 'A ' * 50, 'foo.java', 'A ' * 50 + 'B', 'foo.java', |
| presubmit.OutputApi.PresubmitPromptWarning) |
| + def testCannedCheckSpecialJavaLongLines(self): |
| + check = lambda x, y, _: presubmit_canned_checks.CheckLongLines(x, y) |
| + self.ContentTest(check, 'import ' + 'A ' * 50, 'foo.java', |
|
M-A Ruel
2012/10/09 21:39:11
Put 150 to be make it clear that any line length w
|
| + 'importSomething ' + 'A ' * 50, 'foo.java', |
| + presubmit.OutputApi.PresubmitPromptWarning) |
| + |
| def testCannedCheckLongLinesLF(self): |
| check = lambda x, y, z: presubmit_canned_checks.CheckLongLines(x, y, 10, z) |
| self.ContentTest(check, '012345678\n', None, '0123456789\n', None, |