[evolution-data-server/wip/offline-cache] ECalCache test change for a floating time event
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/wip/offline-cache] ECalCache test change for a floating time event
- Date: Tue, 21 Mar 2017 17:32:34 +0000 (UTC)
commit fe5f2d199dfa77e3230a0670fe72b8001f0a9f35
Author: Milan Crha <mcrha redhat com>
Date: Wed Feb 22 10:01:55 2017 +0100
ECalCache test change for a floating time event
tests/libedata-cal/components/event-8.ics | 6 +++---
tests/libedata-cal/test-cal-cache-search.c | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/tests/libedata-cal/components/event-8.ics b/tests/libedata-cal/components/event-8.ics
index 89db909..35887ad 100644
--- a/tests/libedata-cal/components/event-8.ics
+++ b/tests/libedata-cal/components/event-8.ics
@@ -1,13 +1,13 @@
BEGIN:VEVENT
UID:event-8
DTSTAMP:20170221T121736Z
-DTSTART;TZID=America/New_York:20170225T160000
-DTEND;TZID=America/New_York:20170225T170000
+DTSTART:20170225T160000
+DTEND:20170225T160500
SEQUENCE:2
ORGANIZER;CN=Bob:MAILTO:bob@no.where
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;
RSVP=TRUE;LANGUAGE=en:MAILTO:alice@no.where
-SUMMARY:Meet Alice
+SUMMARY:Meet Alice (Floating time)
COMMENT:User commentary text
TRANSP:OPAQUE
CLASS:PUBLIC
diff --git a/tests/libedata-cal/test-cal-cache-search.c b/tests/libedata-cal/test-cal-cache-search.c
index 2253c29..754aec4 100644
--- a/tests/libedata-cal/test-cal-cache-search.c
+++ b/tests/libedata-cal/test-cal-cache-search.c
@@ -260,6 +260,9 @@ test_search_occur_in_time_range (TCUFixture *fixture,
test_search (fixture, "(occur-in-time-range? (make-time \"20170209T000000Z\") (make-time
\"20170210T000000Z\"))", "event-1");
test_search (fixture, "(occur-in-time-range? (make-time \"20170209T020000Z\") (make-time
\"20170209T023000Z\"))", "event-1");
test_search (fixture, "(occur-in-time-range? (make-time \"20111231T000000Z\") (make-time
\"20111231T595959Z\"))", "event-5");
+ test_search (fixture, "(occur-in-time-range? (make-time \"20170225T160100Z\") (make-time
\"20170225T160200Z\") \"America/New_York\")", "event-8");
+ test_search (fixture, "(occur-in-time-range? (make-time \"20170225T160100Z\") (make-time
\"20170225T160200Z\") \"Europe/Berlin\")", "event-8");
+ test_search (fixture, "(occur-in-time-range? (make-time \"20170225T160100Z\") (make-time
\"20170225T160200Z\") \"UTC\")", "event-8");
/* the second instance of event-6 */
test_search (fixture, "(occur-in-time-range? (make-time \"20170221T130000Z\") (make-time
\"20170221T140000Z\"))", "event-6");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]