mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 02:40:07 +00:00
Merge branch 'matthiasc/for-main' into 'main'
ci: Avoid silly date-dependent failures See merge request GNOME/gtk!7088
This commit is contained in:
commit
5af7c7d0f2
@ -72,6 +72,8 @@ test_calendar_set_get_year (void)
|
|||||||
int year;
|
int year;
|
||||||
|
|
||||||
calendar = gtk_calendar_new ();
|
calendar = gtk_calendar_new ();
|
||||||
|
gtk_calendar_set_day (GTK_CALENDAR (calendar), 10); /* avoid days that don't exist in all years */
|
||||||
|
|
||||||
gtk_calendar_set_year (GTK_CALENDAR (calendar), 2024);
|
gtk_calendar_set_year (GTK_CALENDAR (calendar), 2024);
|
||||||
year = gtk_calendar_get_year (GTK_CALENDAR (calendar));
|
year = gtk_calendar_get_year (GTK_CALENDAR (calendar));
|
||||||
g_assert_cmpint (year, ==, 2024);
|
g_assert_cmpint (year, ==, 2024);
|
||||||
@ -84,6 +86,8 @@ test_calendar_set_get_month (void)
|
|||||||
int month;
|
int month;
|
||||||
|
|
||||||
calendar = gtk_calendar_new ();
|
calendar = gtk_calendar_new ();
|
||||||
|
gtk_calendar_set_day (GTK_CALENDAR (calendar), 10); /* avoid days that don't exist in all months */
|
||||||
|
|
||||||
gtk_calendar_set_month (GTK_CALENDAR (calendar), 1); /* February */
|
gtk_calendar_set_month (GTK_CALENDAR (calendar), 1); /* February */
|
||||||
month = gtk_calendar_get_month (GTK_CALENDAR (calendar));
|
month = gtk_calendar_get_month (GTK_CALENDAR (calendar));
|
||||||
g_assert_cmpint (month, ==, 1);
|
g_assert_cmpint (month, ==, 1);
|
||||||
@ -97,8 +101,10 @@ test_calendar_set_get_day (void)
|
|||||||
|
|
||||||
calendar = gtk_calendar_new ();
|
calendar = gtk_calendar_new ();
|
||||||
gtk_calendar_set_day (GTK_CALENDAR (calendar), 10);
|
gtk_calendar_set_day (GTK_CALENDAR (calendar), 10);
|
||||||
|
|
||||||
|
gtk_calendar_set_day (GTK_CALENDAR (calendar), 11);
|
||||||
day = gtk_calendar_get_day (GTK_CALENDAR (calendar));
|
day = gtk_calendar_get_day (GTK_CALENDAR (calendar));
|
||||||
g_assert_cmpint (day, ==, 10);
|
g_assert_cmpint (day, ==, 11);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user