[gtk+] builder test: Adjust expections
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] builder test: Adjust expections
- Date: Wed, 9 Jul 2014 23:55:29 +0000 (UTC)
commit 86cceab75d0a7366223c9787f8b0aed43279ead9
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 9 19:52:55 2014 -0400
builder test: Adjust expections
Dialogs no longer set a headerbar as titlebar unless use-header-bar
is set to 1. Update the test to do that.
testsuite/gtk/builder.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c
index 2bacb34..ba1f7a1 100644
--- a/testsuite/gtk/builder.c
+++ b/testsuite/gtk/builder.c
@@ -1007,6 +1007,7 @@ test_children (void)
const gchar buffer2[] =
"<interface>"
" <object class=\"GtkDialog\" id=\"dialog1\">"
+ " <property name=\"use_header_bar\">1</property>"
" <child internal-child=\"vbox\">"
" <object class=\"GtkVBox\" id=\"dialog1-vbox\">"
" <property name=\"border-width\">10</property>"
@@ -1042,7 +1043,7 @@ test_children (void)
g_assert (dialog != NULL);
g_assert (GTK_IS_DIALOG (dialog));
children = gtk_container_get_children (GTK_CONTAINER (dialog));
- g_assert (g_list_length (children) == 2);
+ g_assert_cmpint (g_list_length (children), ==, 2);
g_list_free (children);
vbox = gtk_builder_get_object (builder, "dialog1-vbox");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]