diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-service.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-service.cc b/tests/test-service.cc index ddb02d6..fccdb1d 100644 --- a/tests/test-service.cc +++ b/tests/test-service.cc @@ -525,7 +525,9 @@ TEST_F (ServiceTest, ConfirmationDisabledByBackend) ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.switch-to-screensaver")); ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.logout")); if (action_menuitem_exists ("indicator.reboot")) + { ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.reboot")); + } ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.power-off")); // now toggle the can-prompt flag @@ -539,7 +541,9 @@ TEST_F (ServiceTest, ConfirmationDisabledByBackend) ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.switch-to-greeter")); ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.logout")); if (action_menuitem_exists ("indicator.reboot")) + { ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.reboot")); + } ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.power-off")); // cleanup @@ -572,7 +576,9 @@ TEST_F (ServiceTest, ConfirmationDisabledByUser) ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.switch-to-screensaver")); ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.logout")); if (action_menuitem_exists ("indicator.reboot")) + { ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.reboot")); + } ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.power-off")); // now toggle the can-prompt flag @@ -586,7 +592,9 @@ TEST_F (ServiceTest, ConfirmationDisabledByUser) ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.switch-to-greeter")); ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.logout")); if (action_menuitem_exists ("indicator.reboot")) + { ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.reboot")); + } ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.power-off")); // cleanup |