[gtk/shortcuts-rebased-again: 130/159] introspection test: Update
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/shortcuts-rebased-again: 130/159] introspection test: Update
- Date: Mon, 24 Jun 2019 11:46:05 +0000 (UTC)
commit a236e59223293ca139c7a7e2fac8ffdf900227ce
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 23 01:37:53 2019 +0000
introspection test: Update
GtkText has some new actions.
testsuite/gtk/action.c | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/testsuite/gtk/action.c b/testsuite/gtk/action.c
index 12dbb42542..400f248490 100644
--- a/testsuite/gtk/action.c
+++ b/testsuite/gtk/action.c
@@ -365,6 +365,11 @@ test_introspection (void)
{ GTK_TYPE_TEXT, "selection.select-all", NULL, NULL },
{ GTK_TYPE_TEXT, "misc.insert-emoji", NULL, NULL },
{ GTK_TYPE_TEXT, "misc.toggle-visibility", NULL, "visibility" },
+ { GTK_TYPE_TEXT, "misc.toggle-overwrite", NULL, "overwrite-mode" },
+ { GTK_TYPE_TEXT, "edit.move-cursor", "(iib)", NULL },
+ { GTK_TYPE_TEXT, "edit.insert-at-cursor", "s", NULL },
+ { GTK_TYPE_TEXT, "edit.delete-from-cursor", "(ii)", NULL },
+ { GTK_TYPE_TEXT, "edit.backspace", NULL, NULL },
};
i = 0;
@@ -375,12 +380,16 @@ test_introspection (void)
¶ms,
&property))
{
+ const char *p;
+ if (params)
+ p = g_variant_type_peek_string (params);
+ else
+ p = NULL;
+ g_assert (i < G_N_ELEMENTS (expected));
g_assert (expected[i].owner == owner);
- g_assert (strcmp (expected[i].name, name) == 0);
- g_assert ((expected[i].params == NULL && params == NULL) ||
- strcmp (expected[i].params, g_variant_type_peek_string (params)) == 0);
- g_assert ((expected[i].property == NULL && property == NULL) ||
- strcmp (expected[i].property, property) == 0);
+ g_assert_cmpstr (expected[i].name, ==, name);
+ g_assert_cmpstr (expected[i].params, ==, p);
+ g_assert_cmpstr (expected[i].property, ==, property);
i++;
}
g_assert (i == G_N_ELEMENTS (expected));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]