[gxml] GomElement: Unit tests GObject properties / attributes



commit 447a6f3b912c6b635c43ff97e832413c1c68803f
Author: Daniel Espinosa <esodan gmail com>
Date:   Tue Mar 13 12:53:35 2018 -0600

    GomElement: Unit tests GObject properties / attributes

 test/GomSerializationTest.vala | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/test/GomSerializationTest.vala b/test/GomSerializationTest.vala
index 329fa64..712c516 100644
--- a/test/GomSerializationTest.vala
+++ b/test/GomSerializationTest.vala
@@ -1458,5 +1458,12 @@ class GomSerializationTest : GXmlTest  {
       assert_not_reached ();
     }
     });
+    Test.add_func ("/gxml/gom-serialization/attribute-gobject", () => {
+      var tk = new ThreeKey ();
+      assert (tk.code == null);
+      assert (tk.get_attribute ("Code") == null);
+      tk.code = "code";
+      assert (tk.get_attribute ("Code") == "code");
+    });
   }
 }


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