testsuite: Check widget properties better
authorMatthias Clasen <mclasen@redhat.com>
Mon, 10 Apr 2023 04:24:57 +0000 (00:24 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 10 Apr 2023 04:24:57 +0000 (00:24 -0400)
Check that setting a property after resetting
it works. An instance of this was fixed in the
previous commit.

testsuite/gtk/notify.c

index d9bdc2eb07abc93f9d9e396bf3d38a479de3153a..3f313ac435459e0b25b1f65fffb0b2a2b8d18c3d 100644 (file)
@@ -383,6 +383,9 @@ check_property (GObject *instance, GParamSpec *pspec)
       g_object_set (instance, pspec->name, NULL, NULL);
       assert_notifies (instance, pspec->name, data.count, 2);
 
+      g_object_set (instance, pspec->name, value, NULL);
+      assert_notifies (instance, pspec->name, data.count, 3);
+
       g_object_unref (value);
 
       g_signal_handler_disconnect (instance, id);