tests: Update property tests

The pages property must be skipped.
This commit is contained in:
Matthias Clasen 2019-02-21 00:29:09 -05:00
parent 27f008de44
commit 3eda783d0a
2 changed files with 9 additions and 0 deletions

View File

@ -165,6 +165,10 @@ test_type (gconstpointer data)
(strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */
continue;
if (g_type_is_a (type, GTK_TYPE_NOTEBOOK) &&
(strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */
continue;
if (g_type_is_a (type, GTK_TYPE_POPOVER) &&
(strcmp (pspec->name, "pointing-to") == 0))
continue;

View File

@ -617,6 +617,11 @@ test_type (gconstpointer data)
g_str_equal (pspec->name, "selected-item")))
continue;
/* can't set position without a notebook */
if (g_type_is_a (type, GTK_TYPE_NOTEBOOK_PAGE) &&
g_str_equal (pspec->name, "position"))
continue;
if (g_test_verbose ())
g_print ("Property %s.%s\n", g_type_name (pspec->owner_type), pspec->name);