tests: Add a test for latest commit

https://bugzilla.gnome.org/show_bug.cgi?id=666392
This commit is contained in:
Rui Matos 2011-12-17 11:51:35 +00:00
parent 9d6da33ff5
commit 4a113394da

View File

@ -21,6 +21,25 @@
#include <gtk/gtk.h>
static void
test_9d6da33ff5c5e41e3521e1afd63d2d67bc915753 (void)
{
GtkWidget *window, *label;
window = gtk_window_new (GTK_WINDOW_POPUP);
label = gtk_label_new ("I am sensitive.");
gtk_container_add (GTK_CONTAINER (window), label);
gtk_widget_set_sensitive (label, FALSE);
gtk_widget_set_sensitive (window, FALSE);
gtk_widget_set_sensitive (label, TRUE);
gtk_widget_set_sensitive (window, TRUE);
g_assert (gtk_widget_get_sensitive (label));
gtk_widget_destroy (window);
}
static void
test_94f00eb04dd1433cf1cc9a3341f485124e38abd1 (void)
{
@ -45,6 +64,7 @@ main (int argc, char *argv[])
gtk_test_init (&argc, &argv, NULL);
g_test_add_func ("/regression/94f00eb04dd1433cf1cc9a3341f485124e38abd1", test_94f00eb04dd1433cf1cc9a3341f485124e38abd1);
g_test_add_func ("/regression/9d6da33ff5c5e41e3521e1afd63d2d67bc915753", test_9d6da33ff5c5e41e3521e1afd63d2d67bc915753);
return g_test_run ();
}