[gnome-desktop/wip/fmuellner/safer-testing] tests: Guard against default changes



commit da0f96e17c1379bca34f32bf6242112c488e4efb
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Sep 5 13:43:29 2018 +0200

    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

 tests/wall-clock.c | 1 +
 1 file changed, 1 insertion(+)
---
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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]