|
|
@ -2205,20 +2205,20 @@ class CannedChecksUnittest(PresubmitTestsBase):
|
|
|
|
check = lambda x, y, z: presubmit_canned_checks.CheckLongLines(x, y, 10, z)
|
|
|
|
check = lambda x, y, z: presubmit_canned_checks.CheckLongLines(x, y, 10, z)
|
|
|
|
self.ContentTest(
|
|
|
|
self.ContentTest(
|
|
|
|
check,
|
|
|
|
check,
|
|
|
|
' http:// 0 23 5',
|
|
|
|
|
|
|
|
None,
|
|
|
|
|
|
|
|
' http:// 0 23 56',
|
|
|
|
' http:// 0 23 56',
|
|
|
|
None,
|
|
|
|
None,
|
|
|
|
|
|
|
|
' foob:// 0 23 56',
|
|
|
|
|
|
|
|
None,
|
|
|
|
presubmit.OutputApi.PresubmitPromptWarning)
|
|
|
|
presubmit.OutputApi.PresubmitPromptWarning)
|
|
|
|
|
|
|
|
|
|
|
|
def testCannedCheckLongLinesFile(self):
|
|
|
|
def testCannedCheckLongLinesFile(self):
|
|
|
|
check = lambda x, y, z: presubmit_canned_checks.CheckLongLines(x, y, 10, z)
|
|
|
|
check = lambda x, y, z: presubmit_canned_checks.CheckLongLines(x, y, 10, z)
|
|
|
|
self.ContentTest(
|
|
|
|
self.ContentTest(
|
|
|
|
check,
|
|
|
|
check,
|
|
|
|
' file:// 0 23 5',
|
|
|
|
|
|
|
|
None,
|
|
|
|
|
|
|
|
' file:// 0 23 56',
|
|
|
|
' file:// 0 23 56',
|
|
|
|
None,
|
|
|
|
None,
|
|
|
|
|
|
|
|
' foob:// 0 23 56',
|
|
|
|
|
|
|
|
None,
|
|
|
|
presubmit.OutputApi.PresubmitPromptWarning)
|
|
|
|
presubmit.OutputApi.PresubmitPromptWarning)
|
|
|
|
|
|
|
|
|
|
|
|
def testCannedCheckLongLinesCssUrl(self):
|
|
|
|
def testCannedCheckLongLinesCssUrl(self):
|
|
|
|