[gtk/stack-fixes: 4/12] testsuite: omit some selection properties



commit 9a4761405689701c1b37fc213729ff387fd93f4d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 9 22:54:37 2019 -0500

    testsuite: omit some selection properties
    
    The selected property of GtkSingleSelection is not
    freely settable, so omit it from notification tests.

 testsuite/gtk/notify.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index 228195b2d3..20315b22f2 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -611,6 +611,12 @@ test_type (gconstpointer data)
          g_str_equal (pspec->name, "expanded"))
        continue;
 
+       /* can't select items without an underlying, populated model */
+       if (g_type_is_a (type, GTK_TYPE_SINGLE_SELECTION) &&
+           (g_str_equal (pspec->name, "selected") ||
+            g_str_equal (pspec->name, "selected-item")))
+         continue;
+
       if (g_test_verbose ())
         g_print ("Property %s.%s\n", g_type_name (pspec->owner_type), pspec->name);
 


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