[vala/0.36: 18/173] tests: Additional basic-types tests for dbus



commit a73bc50c8d7030554e9e7750f883ab3f6be85b76
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Mar 20 11:37:27 2017 +0100

    tests: Additional basic-types tests for dbus

 tests/dbus/basic-types.test |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/dbus/basic-types.test b/tests/dbus/basic-types.test
index 9b183f7..dbe63b1 100644
--- a/tests/dbus/basic-types.test
+++ b/tests/dbus/basic-types.test
@@ -6,6 +6,7 @@ Program: client
 [DBus (name = "org.example.Test")]
 interface Test : Object {
        public abstract string test_property { owned get; set; }
+       public abstract int test_int_property { get; set; }
 
        public abstract void test_void () throws IOError;
        public abstract int test_int (int i, out int j) throws IOError;
@@ -31,6 +32,10 @@ void main () {
        test.test_property = "hello";
        t = test.test_property;
        assert (t == "hello");
+
+       test.test_int_property = 42;
+       j = test.test_int_property;
+       assert (j == 42);
 }
 
 Program: server
@@ -38,6 +43,7 @@ Program: server
 [DBus (name = "org.example.Test")]
 class Test : Object {
        public string test_property { owned get; set; }
+       public int test_int_property { get; set; }
 
        public void test_void () {
        }


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