| Index: tests/presubmit_unittest.py
|
| diff --git a/tests/presubmit_unittest.py b/tests/presubmit_unittest.py
|
| index 87832d46c3eeb5c27b3de5f59742649535587531..d72b6b1e885c4f72298929c4970ac4f00a9d9630 100755
|
| --- a/tests/presubmit_unittest.py
|
| +++ b/tests/presubmit_unittest.py
|
| @@ -2179,6 +2179,12 @@ class CannedChecksUnittest(PresubmitTestsBase):
|
| 'importSomething ' + 'A ' * 50, 'foo.java',
|
| presubmit.OutputApi.PresubmitPromptWarning)
|
|
|
| + def testCannedCheckJSLongLines(self):
|
| + check = lambda x, y, _: presubmit_canned_checks.CheckLongLines(x, y, 10)
|
| + self.ContentTest(check, 'GEN(\'#include "c/b/ui/webui/fixture.h"\');',
|
| + 'foo.js', "// GEN('something');", 'foo.js',
|
| + presubmit.OutputApi.PresubmitPromptWarning)
|
| +
|
| def testCannedCheckObjCExceptionLongLines(self):
|
| check = lambda x, y, _: presubmit_canned_checks.CheckLongLines(x, y, 80)
|
| self.ContentTest(check, '#import ' + 'A ' * 150, 'foo.mm',
|
|
|