summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/PRESUBMIT_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/PRESUBMIT_test.py')
-rw-r--r--chrome/browser/resources/PRESUBMIT_test.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/chrome/browser/resources/PRESUBMIT_test.py b/chrome/browser/resources/PRESUBMIT_test.py
index d46f3b7..923f2be 100644
--- a/chrome/browser/resources/PRESUBMIT_test.py
+++ b/chrome/browser/resources/PRESUBMIT_test.py
@@ -56,13 +56,21 @@ class HTMLActionAdditionTest(unittest.TestCase):
lines = ['<input id="testinput" pref="testpref"',
'metric="invalidaction" type="checkbox" dialog-pref>']
warnings = self._testChange(lines)
- self.assertEqual(1, len(warnings))
+ self.assertEqual(1, len(warnings), warnings)
def testInValidChange_Radio(self):
lines = ['<input id="testinput" pref="testpref"',
' metric="validaction" type="radio" dialog-pref value="string">']
warnings = self._testChange(lines)
- self.assertEqual(1, len(warnings))
+ self.assertEqual(1, len(warnings), warnings)
+
+ def testValidChange_MultilineType(self):
+ lines = ['<input id="testinput" pref="testpref"\n'
+ ' metric="validaction" type=\n'
+ ' "radio" dialog-pref value=\n'
+ ' "false">']
+ warnings = self._testChange(lines)
+ self.assertEqual([], self._testChange(lines))
def _testChange(self, lines):
mock_input_api = MockInputApi()