diff options
author | kugiigi <kugi_eusebio@protonmail.com> | 2021-03-18 16:01:33 +0800 |
---|---|---|
committer | Luigi311 <git@luigi311.com> | 2023-12-16 08:52:04 +0000 |
commit | 4d984d26c3bd930eac72f27aa3fb9165eaef056d (patch) | |
tree | 1c24cf2d4695dff1584bcedee3913da6391b178e /tests | |
parent | 2aace1535ca5dd971b2ac7b796b8eaa03c11bd96 (diff) | |
download | ayatana-indicator-datetime-4d984d26c3bd930eac72f27aa3fb9165eaef056d.tar.gz ayatana-indicator-datetime-4d984d26c3bd930eac72f27aa3fb9165eaef056d.tar.bz2 ayatana-indicator-datetime-4d984d26c3bd930eac72f27aa3fb9165eaef056d.zip |
Also apply show-events to Phone profile
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-menus.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-menus.cpp b/tests/test-menus.cpp index 1f73193..853c3c5 100644 --- a/tests/test-menus.cpp +++ b/tests/test-menus.cpp @@ -325,9 +325,17 @@ private: void InspectPhoneAppointments(GMenuModel* menu_model, bool can_open_planner) { auto submenu = g_menu_model_get_item_link(menu_model, 0, G_MENU_LINK_SUBMENU); + + // there shouldn't be any menuitems when "show events" is false + m_state->settings->show_events.set(false); + wait_msec(); + section = g_menu_model_get_item_link(submenu, Menu::Appointments, G_MENU_LINK_SECTION); + EXPECT_EQ(0, g_menu_model_get_n_items(section)); + g_clear_object(§ion); // clear all the appointments std::vector<Appointment> appointments; + m_state->settings->show_events.set(true); m_state->calendar_upcoming->appointments().set(appointments); wait_msec(); // wait a moment for the menu to update |