[gtk+] tests: Add a test for latest commit



commit 4a113394dae70f18676cf12e7f5f23ba05e962ae
Author: Rui Matos <tiagomatos gmail com>
Date:   Sat Dec 17 11:51:35 2011 +0000

    tests: Add a test for latest commit
    
    https://bugzilla.gnome.org/show_bug.cgi?id=666392

 gtk/tests/regression-tests.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/gtk/tests/regression-tests.c b/gtk/tests/regression-tests.c
index b3a5049..1eced85 100644
--- a/gtk/tests/regression-tests.c
+++ b/gtk/tests/regression-tests.c
@@ -22,6 +22,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)
 {
   GtkWidget *window, *label;
@@ -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 ();
 }



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