diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-03-14 17:37:00 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-03-14 17:37:00 +0000 |
commit | 9f3136ba1c79020c10e58fa53e87a84bcce7dc29 (patch) | |
tree | fa0c19e8e5c7f362b7a04f0ad3e6f57d96c1462c /tests/test-menus.cpp | |
parent | 39d8fc602053397a3596d6d35afb5738b09b05a6 (diff) | |
parent | 35b0a3601f1d7d9f757467ffc7b909c461c2f49d (diff) | |
download | ayatana-indicator-datetime-9f3136ba1c79020c10e58fa53e87a84bcce7dc29.tar.gz ayatana-indicator-datetime-9f3136ba1c79020c10e58fa53e87a84bcce7dc29.tar.bz2 ayatana-indicator-datetime-9f3136ba1c79020c10e58fa53e87a84bcce7dc29.zip |
When the user clicks on a date in the calendar, update the "Upcoming Events" section to show events starting at that date. Fixes: 1290169, 1290171, 1291468
Diffstat (limited to 'tests/test-menus.cpp')
-rw-r--r-- | tests/test-menus.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-menus.cpp b/tests/test-menus.cpp index 73d6036..61d1295 100644 --- a/tests/test-menus.cpp +++ b/tests/test-menus.cpp @@ -255,7 +255,7 @@ private: const std::vector<Appointment>& appointments) { // try adding a few appointments and see if the menu updates itself - m_state->planner->upcoming.set(appointments); + m_state->calendar_upcoming->appointments().set(appointments); wait_msec(); // wait a moment for the menu to update //auto submenu = g_menu_model_get_item_link(menu_model, 0, G_MENU_LINK_SUBMENU); @@ -285,7 +285,7 @@ private: // there should be an "add event" button even if there aren't any appointments std::vector<Appointment> appointments; m_state->settings->show_events.set(true); - m_state->planner->upcoming.set(appointments); + m_state->calendar_upcoming->appointments().set(appointments); wait_msec(); section = g_menu_model_get_item_link(submenu, Menu::Appointments, G_MENU_LINK_SECTION); EXPECT_EQ(1, g_menu_model_get_n_items(section)); @@ -299,7 +299,7 @@ private: // try adding a few appointments and see if the menu updates itself appointments = build_some_appointments(); - m_state->planner->upcoming.set(appointments); + m_state->calendar_upcoming->appointments().set(appointments); wait_msec(); // wait a moment for the menu to update section = g_menu_model_get_item_link(submenu, Menu::Appointments, G_MENU_LINK_SECTION); EXPECT_EQ(3, g_menu_model_get_n_items(section)); @@ -316,7 +316,7 @@ private: // clear all the appointments std::vector<Appointment> appointments; - m_state->planner->upcoming.set(appointments); + m_state->calendar_upcoming->appointments().set(appointments); wait_msec(); // wait a moment for the menu to update // check that there's a "clock app" menuitem even when there are no appointments @@ -332,7 +332,7 @@ private: // add some appointments and test them appointments = build_some_appointments(); - m_state->planner->upcoming.set(appointments); + m_state->calendar_upcoming->appointments().set(appointments); wait_msec(); // wait a moment for the menu to update section = g_menu_model_get_item_link(submenu, Menu::Appointments, G_MENU_LINK_SECTION); EXPECT_EQ(3, g_menu_model_get_n_items(section)); |