gtk/testsuite/a11y/box.c

23 lines
402 B
C
Raw Normal View History

2023-06-19 16:35:36 +00:00
#include <gtk/gtk.h>
static void
box_role (void)
{
GtkWidget *widget = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
g_object_ref_sink (widget);
gtk_test_accessible_assert_role (widget, GTK_ACCESSIBLE_ROLE_GENERIC);
g_object_unref (widget);
}
int
main (int argc, char *argv[])
{
gtk_test_init (&argc, &argv, NULL);
g_test_add_func ("/a11y/box/role", box_role);
return g_test_run ();
}