diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-12-19 16:58:19 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-12-19 16:58:19 +0100 |
commit | d0ebe52935bb6b92ea5c84a8388ab992066e7a5e (patch) | |
tree | cff6527e6f869c465e0b90296e761e246a8a39c6 /tests | |
parent | ecaacccacf853059ea4588c44bd13035faaba6af (diff) | |
parent | 63a57fde6677d8f663e5880a259998b95b1da6c5 (diff) | |
download | ayatana-indicator-datetime-d0ebe52935bb6b92ea5c84a8388ab992066e7a5e.tar.gz ayatana-indicator-datetime-d0ebe52935bb6b92ea5c84a8388ab992066e7a5e.tar.bz2 ayatana-indicator-datetime-d0ebe52935bb6b92ea5c84a8388ab992066e7a5e.zip |
Merge branch 'luigi311-toggle_alarm'
Attributes GH PR #118: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/118
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-menus.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test-menus.cpp b/tests/test-menus.cpp index 853c3c5..e71c997 100644 --- a/tests/test-menus.cpp +++ b/tests/test-menus.cpp @@ -272,6 +272,19 @@ private: for (int i=0, n=appointments.size(); i<n; i++) InspectAppointmentMenuItem(section, first_appt_index+i, appointments[i]); + // there shouldn't be any alarms when "show alarms" is false + bool has_alarms = false; + + m_state->settings->show_alarms.set(false); + + for (int i=0, n=appointments.size(); i<n; i++) + if((has_alarms = appointments[i].is_alarm())) + break; + + EXPECT_FALSE(has_alarms); + + m_state->settings->show_alarms.set(true); + //g_clear_object(§ion); //g_clear_object(&submenu); } |