aboutsummaryrefslogtreecommitdiff
path: root/tests/test-service.cc
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-10-28 17:26:40 -0700
committerTed Gould <ted@gould.cx>2013-10-28 17:26:40 -0700
commitf33e02386a7bff8c3fbf092af513fabb9b8a1fee (patch)
tree97d75ebb87405686a97d688c71f394105cfb912c /tests/test-service.cc
parent77ec76b2cebdce34e6fdd3996003a31ac573203a (diff)
parentb77606c40b9a614021db60fd2c2053f5ab882c2a (diff)
downloadayatana-indicator-session-f33e02386a7bff8c3fbf092af513fabb9b8a1fee.tar.gz
ayatana-indicator-session-f33e02386a7bff8c3fbf092af513fabb9b8a1fee.tar.bz2
ayatana-indicator-session-f33e02386a7bff8c3fbf092af513fabb9b8a1fee.zip
Merge trunk
Diffstat (limited to 'tests/test-service.cc')
-rw-r--r--tests/test-service.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/test-service.cc b/tests/test-service.cc
index b199175..19ec619 100644
--- a/tests/test-service.cc
+++ b/tests/test-service.cc
@@ -504,7 +504,7 @@ TEST_F (ServiceTest, ConfirmationDisabledByBackend)
bool confirm = confirm_supported && !confirm_disabled;
// confirm that the ellipsis are correct
- ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.switch-to-greeter"));
+ 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"));
@@ -538,7 +538,7 @@ TEST_F (ServiceTest, ConfirmationDisabledByUser)
bool confirm = confirm_supported && !confirm_disabled;
// confirm that the ellipsis are correct
- ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.switch-to-greeter"));
+ 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"));
@@ -570,7 +570,7 @@ TEST_F (ServiceTest, DefaultMenuItems)
ASSERT_TRUE (find_menu_item_for_action ("indicator.about", NULL, NULL));
ASSERT_TRUE (find_menu_item_for_action ("indicator.help", NULL, NULL));
ASSERT_TRUE (find_menu_item_for_action ("indicator.settings", NULL, NULL));
- ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-greeter", NULL, NULL));
+ ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-screensaver", NULL, NULL));
ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-guest", NULL, NULL));
ASSERT_TRUE (find_menu_item_for_action ("indicator.logout", NULL, NULL));
ASSERT_TRUE (find_menu_item_for_action ("indicator.suspend", NULL, NULL));
@@ -681,10 +681,10 @@ TEST_F (ServiceTest, User)
};
// Find the switcher menu model.
- // In BackendMock's default setup, it will only two menuitems: greeter & guest
+ // In BackendMock's default setup, it will only have two menuitems: lockswitch & guest
int pos = 0;
GMenuModel * switch_menu = 0;
- ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-greeter", &switch_menu, &pos));
+ ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-screensaver", &switch_menu, &pos));
ASSERT_EQ (0, pos);
ASSERT_EQ (2, g_menu_model_get_n_items (switch_menu));
g_clear_object (&switch_menu);
@@ -709,7 +709,7 @@ TEST_F (ServiceTest, User)
wait_for_menu_resync ();
// now there should be 7 menuitems: greeter + guest + the five doctors
- ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-greeter", &switch_menu, &pos));
+ ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-screensaver", &switch_menu, &pos));
ASSERT_EQ (0, pos);
ASSERT_EQ (7, g_menu_model_get_n_items (switch_menu));
// confirm that the doctor names are sorted
@@ -727,7 +727,7 @@ TEST_F (ServiceTest, User)
wait_for_menu_resync ();
// now there should be 5 menuitems: greeter + guest + the three doctors
- ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-greeter", &switch_menu, &pos));
+ ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-screensaver", &switch_menu, &pos));
ASSERT_EQ (0, pos);
ASSERT_EQ (5, g_menu_model_get_n_items (switch_menu));
// confirm that the doctor names are sorted
@@ -744,7 +744,7 @@ TEST_F (ServiceTest, User)
wait_for_menu_resync ();
// now there should be 5 menuitems: greeter + guest + the three doctors
- ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-greeter", &switch_menu, &pos));
+ ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-screensaver", &switch_menu, &pos));
ASSERT_EQ (0, pos);
ASSERT_EQ (5, g_menu_model_get_n_items (switch_menu));
g_clear_object (&switch_menu);
@@ -770,7 +770,7 @@ TEST_F (ServiceTest, User)
g_object_get (service, "max-users", &max_users, NULL);
ASSERT_EQ (2, max_users);
wait_for_menu_resync ();
- ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-greeter", &switch_menu, &pos));
+ ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-screensaver", &switch_menu, &pos));
ASSERT_EQ (0, pos);
ASSERT_EQ (4, g_menu_model_get_n_items (switch_menu));
check_label ("First Doctor", switch_menu, 2);
@@ -800,7 +800,7 @@ TEST_F (ServiceTest, User)
users[10]->is_logged_in = true;
indicator_session_users_changed (mock_users, users[10]->uid);
wait_for_menu_resync ();
- ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-greeter", &switch_menu, &pos));
+ ASSERT_TRUE (find_menu_item_for_action ("indicator.switch-to-screensaver", &switch_menu, &pos));
ASSERT_EQ (0, pos);
ASSERT_EQ (9, g_menu_model_get_n_items (switch_menu));
check_label ("Eleventh Doctor", switch_menu, 2);