| Index: PRESUBMIT_test.py
|
| diff --git a/PRESUBMIT_test.py b/PRESUBMIT_test.py
|
| index 18e3c6e74d4bd29aceaed5c411749f6bddd99248..195fe4f83241340d42e682e6f4c7aea503c7d2b4 100755
|
| --- a/PRESUBMIT_test.py
|
| +++ b/PRESUBMIT_test.py
|
| @@ -270,6 +270,16 @@ class VersionControlConflictsTest(unittest.TestCase):
|
| self.assertTrue('3' in errors[1])
|
| self.assertTrue('5' in errors[2])
|
|
|
| + def testIgnoresReadmes(self):
|
| + lines = ['A First Level Header',
|
| + '====================',
|
| + '',
|
| + 'A Second Level Header',
|
| + '---------------------']
|
| + errors = PRESUBMIT._CheckForVersionControlConflictsInFile(
|
| + MockInputApi(), MockFile('some/polymer/README.md', lines))
|
| + self.assertEqual(0, len(errors))
|
| +
|
| class UmaHistogramChangeMatchedOrNotTest(unittest.TestCase):
|
| def testTypicalCorrectlyMatchedChange(self):
|
| diff_cc = ['UMA_HISTOGRAM_BOOL("Bla.Foo.Dummy", true)']
|
|
|