[gtk+] Add some more templates tests



commit 496f14ee538b6f9a8803fb6b0b80cc76cab2e781
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 17 21:42:38 2014 -0500

    Add some more templates tests
    
    GtkActionBar and GtkSearchBar also use templates,
    add them here.

 testsuite/gtk/templates.c |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/templates.c b/testsuite/gtk/templates.c
index c05fc11..316dc15 100644
--- a/testsuite/gtk/templates.c
+++ b/testsuite/gtk/templates.c
@@ -147,6 +147,26 @@ test_statusbar_basic (void)
 }
 
 static void
+test_search_bar_basic (void)
+{
+  GtkWidget *widget;
+
+  widget = gtk_search_bar_new ();
+  g_assert (GTK_IS_SEARCH_BAR (widget));
+  gtk_widget_destroy (widget);
+}
+
+static void
+test_action_bar_basic (void)
+{
+  GtkWidget *widget;
+
+  widget = gtk_action_bar_new ();
+  g_assert (GTK_IS_ACTION_BAR (widget));
+  gtk_widget_destroy (widget);
+}
+
+static void
 test_app_chooser_widget_basic (void)
 {
   GtkWidget *widget;
@@ -351,6 +371,8 @@ main (int argc, char **argv)
   g_test_add_func ("/Template/GtkScaleButton/Basic", test_scale_button_basic);
   g_test_add_func ("/Template/GtkVolumeButton/Basic", test_volume_button_basic);
   g_test_add_func ("/Template/GtkStatusBar/Basic", test_statusbar_basic);
+  g_test_add_func ("/Template/GtkSearchBar/Basic", test_search_bar_basic);
+  g_test_add_func ("/Template/GtkActionBar/Basic", test_action_bar_basic);
   g_test_add_func ("/Template/GtkAppChooserWidget/Basic", test_app_chooser_widget_basic);
   g_test_add_func ("/Template/GtkAppChooserDialog/Basic", test_app_chooser_dialog_basic);
   g_test_add_func ("/Template/GtkColorChooserDialog/Basic", test_color_chooser_dialog_basic);


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