summaryrefslogtreecommitdiff
path: root/tests/validationtest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validationtest.cpp')
-rw-r--r--tests/validationtest.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/validationtest.cpp b/tests/validationtest.cpp
index 5a1aa58..97a928e 100644
--- a/tests/validationtest.cpp
+++ b/tests/validationtest.cpp
@@ -39,6 +39,14 @@ void ValidationTest::testNoErrorOnValidEvent()
QCOMPARE(Kolab::error(), Kolab::NoError);
}
+void ValidationTest::testOlsonTimezone()
+{
+ Event event;
+ event.setStart(cDateTime("Europe/Zurich",2013,1,1,1,1,1));
+ writeEvent(event);
+ QCOMPARE(Kolab::error(), Kolab::NoError);
+}
+
void ValidationTest::testDifferentTimezones()
{
Event event;
@@ -66,6 +74,13 @@ void ValidationTest::testTimezoneZ()
QCOMPARE(Kolab::error(), Kolab::Error);
}
+void ValidationTest::testWindowsTimezone()
+{
+ Event event;
+ event.setStart(cDateTime("Central European Standard Time",2013,1,1,1,1,1));
+ writeEvent(event);
+ QCOMPARE(Kolab::error(), Kolab::Error);
+}
QTEST_MAIN( ValidationTest )