diff options
author | Iain Lane <iain@orangesquash.org.uk> | 2014-03-19 17:35:47 +0000 |
---|---|---|
committer | Iain Lane <iain@orangesquash.org.uk> | 2014-03-19 17:35:47 +0000 |
commit | d5b6485ae8f17525ddc6e2beacb4f7a5dce73bfa (patch) | |
tree | 88e9cadf14f962ecc5841176e17c03251327e4f6 /tests/test-service.cc | |
parent | 574547d5b173aa5dc19e5e35207f02f72c9de629 (diff) | |
download | ayatana-indicator-session-d5b6485ae8f17525ddc6e2beacb4f7a5dce73bfa.tar.gz ayatana-indicator-session-d5b6485ae8f17525ddc6e2beacb4f7a5dce73bfa.tar.bz2 ayatana-indicator-session-d5b6485ae8f17525ddc6e2beacb4f7a5dce73bfa.zip |
Re-add the feature to hide the user list if com.canonical.indicator.session user-show-menu is false
Diffstat (limited to 'tests/test-service.cc')
-rw-r--r-- | tests/test-service.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-service.cc b/tests/test-service.cc index f14fe61..1f3272f 100644 --- a/tests/test-service.cc +++ b/tests/test-service.cc @@ -812,6 +812,16 @@ TEST_F (ServiceTest, User) check_label ("Third Doctor", switch_menu, 8); g_clear_object (&switch_menu); + /* Hide the user list */ + g_settings_set_boolean (indicator_settings, "user-show-menu", FALSE); + 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-screensaver", &switch_menu, &pos)); + ASSERT_EQ (0, pos); + ASSERT_EQ (2, g_menu_model_get_n_items (switch_menu)); + g_clear_object (&switch_menu); + g_settings_set_boolean (indicator_settings, "user-show-menu", TRUE); + // now switch to one of the doctors g_action_group_activate_action (G_ACTION_GROUP(action_group), "switch-to-user", |