Branch 'libkolab-0.4' - 2 commits - tests/testfiles tests/testhelpers.h

Christian Mollekopf mollekopf at kolabsys.com
Wed Oct 2 10:57:25 CEST 2013


 tests/testfiles/v2/task/complex.ics |    1 -
 tests/testhelpers.h                 |   15 +++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

New commits:
commit 7f4cbf3c2b348b5e00b14abe7cb0d3952746d2dc
Author: Christian Mollekopf <mollekopf at kolabsys.com>
Date:   Wed Oct 2 10:45:13 2013 +0200

    Duration serializer for debugging.

diff --git a/tests/testhelpers.h b/tests/testhelpers.h
index 546bc30..f0e3889 100644
--- a/tests/testhelpers.h
+++ b/tests/testhelpers.h
@@ -312,6 +312,21 @@ namespace QTest {
         return qstrdup(ba.data());
     }
 
+    template<>
+    char *toString(const Kolab::Duration &p)
+    {
+        QByteArray ba = "Kolab::Duration";
+        ba += p.isNegative() ? "-": "+";
+        ba += "(";
+        ba += QString::number(p.weeks())+ ", ";
+        ba += QString::number(p.days())+ ", ";
+        ba += QString::number(p.hours())+ ", ";
+        ba += QString::number(p.minutes())+ ", ";
+        ba += QString::number(p.seconds());
+        ba += ")";
+        return qstrdup(ba.data());
+    }
+
 }
 
 #endif


commit 27ae2a76d73648a55103ce1e928226ee3db96a6b
Author: Christian Mollekopf <mollekopf at kolabsys.com>
Date:   Wed Oct 2 10:45:00 2013 +0200

    kolabv2 doesn't support RECURRENCE-ID

diff --git a/tests/testfiles/v2/task/complex.ics b/tests/testfiles/v2/task/complex.ics
index 0188830..82e879e 100644
--- a/tests/testfiles/v2/task/complex.ics
+++ b/tests/testfiles/v2/task/complex.ics
@@ -39,7 +39,6 @@ ATTACH;VALUE=BINARY;FMTTYPE=image/png;ENCODING=BASE64;X-LABEL=akonadi.png:
 DUE;TZID=Europe/Berlin:20090908T160000
 DTSTART;TZID=Europe/Berlin:20090901T160000
 PERCENT-COMPLETE:50
-RECURRENCE-ID;TZID=Europe/Berlin:20090908T160000
 BEGIN:VALARM
 DESCRIPTION:
 ACTION:DISPLAY




More information about the commits mailing list