summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2018-09-05 13:43:29 +0200
committerMichael Catanzaro <mcatanzaro@posteo.net>2018-09-05 15:06:52 +0000
commit77be1d606acc2e633afdb9487ec9b736e45042d4 (patch)
treecad1b8694273eba97c5ba438a788c87942fd6ff6 /tests
parent92ca7ece8c20dbe079b65fa96952967e9508334a (diff)
downloadgnome-desktop-77be1d606acc2e633afdb9487ec9b736e45042d4.tar.gz
tests: Guard against default changes
The wall-clock weekday test assumes that only the time is shown when the weekday setting is disabled. This is only true while the clock doesn't include the date by default, which is may happen as proposed in gsettings-desktop-schemas!2. But even if the default isn't changed it is still safer to spell out the assumptions, so explicitly disable the date. https://gitlab.gnome.org/GNOME/gnome-desktop/merge_requests/18
Diffstat (limited to 'tests')
-rw-r--r--tests/wall-clock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/wall-clock.c b/tests/wall-clock.c
index 382690e5..62a1f3ba 100644
--- a/tests/wall-clock.c
+++ b/tests/wall-clock.c
@@ -196,6 +196,7 @@ test_weekday_setting (void)
g_settings_set_enum (settings, "clock-format", G_DESKTOP_CLOCK_FORMAT_24H);
g_settings_set_boolean (settings, "clock-show-weekday", FALSE);
+ g_settings_set_boolean (settings, "clock-show-date", FALSE);
clock = gnome_wall_clock_new ();
str = gnome_wall_clock_get_clock (clock);