diff options
-rw-r--r-- | PRESUBMIT_test_mocks.py | 2 | ||||
-rw-r--r-- | chrome/browser/resources/PRESUBMIT.py | 4 | ||||
-rw-r--r-- | chrome/browser/resources/PRESUBMIT_test.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/PRESUBMIT_test_mocks.py b/PRESUBMIT_test_mocks.py index c15d245..f99671d 100644 --- a/PRESUBMIT_test_mocks.py +++ b/PRESUBMIT_test_mocks.py @@ -40,7 +40,7 @@ class MockInputApi(object): class MockOutputApi(object): - ""Mock class for the OutputApi class. + """Mock class for the OutputApi class. An instance of this class can be passed to presubmit unittests for outputing various types of results. diff --git a/chrome/browser/resources/PRESUBMIT.py b/chrome/browser/resources/PRESUBMIT.py index 0aa7b96..e22e2a0 100644 --- a/chrome/browser/resources/PRESUBMIT.py +++ b/chrome/browser/resources/PRESUBMIT.py @@ -59,8 +59,8 @@ def IsActionPresent(current_actions, metric_name, is_boolean): action = 'name="{0}"'.format(metric_name) return action in current_actions - action_disabled = 'name="{0}_Disabled"'.format(metric_name) - action_enabled = 'name="{0}_Enabled"'.format(metric_name) + action_disabled = 'name="{0}_Disable"'.format(metric_name) + action_enabled = 'name="{0}_Enable"'.format(metric_name) return (action_disabled in current_actions and action_enabled in current_actions) diff --git a/chrome/browser/resources/PRESUBMIT_test.py b/chrome/browser/resources/PRESUBMIT_test.py index eccd5c9..028da07 100644 --- a/chrome/browser/resources/PRESUBMIT_test.py +++ b/chrome/browser/resources/PRESUBMIT_test.py @@ -74,11 +74,11 @@ class HTMLActionAdditionTest(unittest.TestCase): def _createActionXMLFile(self): content = ('<actions>' - '<action name="validaction_Disabled">' + '<action name="validaction_Disable">' ' <owner>Please list the metric\'s owners.</owner>' ' <description>Enter the description of this user action.</description>' '</action>' - '<action name="validaction_Enabled">' + '<action name="validaction_Enable">' ' <owner>Please list the metric\'s owners. </owner>' ' <description>Enter the description of this user action.</description>' '</action>' |