mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 01:18:53 +02:00
tests: gsettings: extend g_settings_bind_with_mapping_closures test
... so as to fail with current implementation
This commit is contained in:
committed by
Philip Withnall
parent
78cd78d298
commit
9625907af0
@@ -1827,6 +1827,7 @@ test_bind_with_mapping_closures_parameters (void)
|
|||||||
GSettings *settings;
|
GSettings *settings;
|
||||||
GClosure *get;
|
GClosure *get;
|
||||||
GClosure *set;
|
GClosure *set;
|
||||||
|
gboolean val;
|
||||||
BindWithMappingData data = { FALSE, FALSE, FALSE, FALSE };
|
BindWithMappingData data = { FALSE, FALSE, FALSE, FALSE };
|
||||||
|
|
||||||
settings = g_settings_new ("org.gtk.test.binding");
|
settings = g_settings_new ("org.gtk.test.binding");
|
||||||
@@ -1843,6 +1844,8 @@ test_bind_with_mapping_closures_parameters (void)
|
|||||||
|
|
||||||
g_assert_true (data.get_called);
|
g_assert_true (data.get_called);
|
||||||
g_assert_false (data.set_called);
|
g_assert_false (data.set_called);
|
||||||
|
g_object_get (obj, "bool", &val, NULL);
|
||||||
|
g_assert_true (val);
|
||||||
|
|
||||||
data.get_called = FALSE;
|
data.get_called = FALSE;
|
||||||
g_object_set (obj, "bool", FALSE, NULL);
|
g_object_set (obj, "bool", FALSE, NULL);
|
||||||
|
Reference in New Issue
Block a user