[glibmm/glibmm-2-64] tests/glibmm_binding: Test that unbind() stops props syncing
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-64] tests/glibmm_binding: Test that unbind() stops props syncing
- Date: Mon, 11 Jan 2021 14:28:01 +0000 (UTC)
commit c03a7e5aff27f495ffc61daea9171520f6c65cc6
Author: Daniel Boles <dboles src gnome org>
Date: Mon Jan 11 14:47:35 2021 +0100
tests/glibmm_binding: Test that unbind() stops props syncing
tests/glibmm_binding/main.cc | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/tests/glibmm_binding/main.cc b/tests/glibmm_binding/main.cc
index cdbcaf7b..6b03b5f4 100644
--- a/tests/glibmm_binding/main.cc
+++ b/tests/glibmm_binding/main.cc
@@ -90,6 +90,11 @@ test()
// Ensure no change when invalid source results in false return
source.property_string() = "six six six";
g_assert_cmpint(target.property_int(), ==, 47);
+
+ // or when we manually unbind
+ binding->unbind();
+ source.property_string() = "666";
+ g_assert_cmpint(target.property_int(), ==, 47);
}
// Ensure the binding was released when its RefPtr went out of scope
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]