aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-01-29 09:49:40 -0600
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-26 21:34:30 +0000
commitcc4821ae3e9f191da75ccee1913c87c1bd49b9a3 (patch)
tree5865cfc09240f5fbe24132db2968122eaa377bff /tests
parentc41db259e4a68a2a244c70b3884300dab7c621eb (diff)
downloadayatana-indicator-datetime-cc4821ae3e9f191da75ccee1913c87c1bd49b9a3.tar.gz
ayatana-indicator-datetime-cc4821ae3e9f191da75ccee1913c87c1bd49b9a3.tar.bz2
ayatana-indicator-datetime-cc4821ae3e9f191da75ccee1913c87c1bd49b9a3.zip
sync unit tests with calendar, locations being visible in phone profile
Diffstat (limited to 'tests')
-rw-r--r--tests/test-menus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-menus.cpp b/tests/test-menus.cpp
index c1dbb2d..dd19487 100644
--- a/tests/test-menus.cpp
+++ b/tests/test-menus.cpp
@@ -102,7 +102,7 @@ protected:
else
expected_action = nullptr;
- const auto calendar_expected = ((profile == Menu::Desktop) || (profile == Menu::DesktopGreeter))
+ const auto calendar_expected = ((profile == Menu::Desktop) || (profile == Menu::DesktopGreeter) || (profile == Menu::Phone))
&& (m_state->settings->show_calendar.get());
// get the calendar section
@@ -420,7 +420,7 @@ protected:
void InspectLocations(GMenuModel* menu_model, Menu::Profile profile)
{
- const bool locations_expected = profile == Menu::Desktop;
+ const bool locations_expected = (profile == Menu::Desktop) || (profile == Menu::Phone);
// when there aren't any locations, confirm the menu is empty
const std::vector<Location> empty;