[gxml] Modified test for GomProperty using Nick



commit 3d3b4a1a37df78b92b8f99941973745117b481c6
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Jan 26 10:41:06 2017 -0600

    Modified test for GomProperty using Nick

 test/GomSerializationTest.vala |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/test/GomSerializationTest.vala b/test/GomSerializationTest.vala
index 3664f34..c9b969a 100644
--- a/test/GomSerializationTest.vala
+++ b/test/GomSerializationTest.vala
@@ -282,11 +282,17 @@ class GomSerializationTest : GXmlTest  {
     }
   }
   public class Motor : GomElement {
+    [Description (nick="::On")]
     public On is_on { get; set; }
+    [Description (nick="::Torque")]
     public Torque torque { get; set; }
+    [Description (nick="::Speed")]
     public Speed speed { get; set; }
+    [Description (nick="::TensionType")]
     public TensionType tension_type { get; set; }
+    [Description (nick="::Tension")]
     public Tension tension { get; set; }
+    [Description (nick="::Model")]
     public Model model { get; set; }
     construct { try { initialize ("Motor"); } catch { assert_not_reached (); } }
     public string to_string () {
@@ -304,9 +310,7 @@ class GomSerializationTest : GXmlTest  {
       AC,
       DC
     }
-    public class On : GomBoolean {
-      construct { try { initialize ("On"); } catch { assert_not_reached (); } }
-    }
+    public class On : GomBoolean {}
     public class Torque : GomDouble {
       construct {
         try { initialize ("Torque"); } catch { assert_not_reached (); }


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