summaryrefslogtreecommitdiff
path: root/tests/libecal
Commit message (Collapse)AuthorAgeFilesLines
* I#276 - alarm-notify: Incorrectly handles changes in recurring eventsMilan Crha2023-02-231-5/+31
| | | | Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/276
* Calendar: Extract categories parsing into a utility functionMilan Crha2022-11-231-0/+138
| | | | | | | | This can be used by code which doesn't need to use an ECalComponent wrapper just to get to the categories. The change also sanitizes the categories by removing trailing white-spaces and ignores empty strings.
* Calendar: Add functions to handle LANGUAGE parameter on propertiesMilan Crha2022-06-081-8/+320
| | | | | | This helps to read properties related only to certain language/locale. Related to https://gitlab.gnome.org/GNOME/evolution/-/issues/876
* I#393 - Calendar: Correct UNTIL recurrence with midnight startMilan Crha2022-06-071-0/+152
| | | | Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/393
* ECalComponent: Add safety checks on get/set of DTEND/DUE propertiesMilan Crha2022-01-051-1/+1
| | | | | | These are available only on certain component types, thus test for it. Let the getters return NULL silently, but warn when the setter is used with an invalid component type (though still allow to do it).
* I#371 - e-cal-util: Fix timezone clamp with DUE date onlyMilan Crha2022-01-041-0/+15
| | | | Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/371
* Use `g_assert_true()` instead of `g_assert()` in the unit testsMilan Crha2021-09-2911-104/+104
| | | | | | The `g_assert()` can be disabled by `G_DISABLE_ASSERT` when compiling, which is not desired for the unit tests, thus use the `g_assert_true()` in the tests instead.
* Calendar: Support THIS_AND_FUTURE range for the Recurrence-IDMilan Crha2021-06-081-8/+9
| | | | | | | | The ECalComponent needs to read/write the range kind, thus it's preserved. The backends need to read the kind and update the local components properly, when an update of the component is received. Related to https://gitlab.gnome.org/GNOME/evolution/-/issues/1527
* ews-I#144 - Calendar: Dismiss of a reminder doesn't provide recurrence IDMilan Crha2021-02-231-5/+11
| | | | Related to https://gitlab.gnome.org/GNOME/evolution-ews/-/issues/144
* test-cal-utils: Add test to clamp a VTIMEZONE by a future timeMilan Crha2021-02-181-2/+39
|
* Calendar: Add functions to clamp a VTIMEZONE componentMilan Crha2021-02-182-0/+183
| | | | | Can be used to limit the data transfer for simple events where the whole history of the timezone shifts doesn't matter.
* I#295 - Calendar: Use ACKNOWLEDGED VALARM propertyMilan Crha2021-02-091-9/+32
| | | | | | | | Touches the 'file' and the 'CalDAV' backends, storing the current time when the reminder had been dismissed. The reminder watcher ignores any reminders, which are scheduled before the acknowledged time. Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/295
* I#282 - tests: Avoid build/source directories in executablesMilan Crha2021-01-0515-15/+15
| | | | Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/282
* I#194 - e-cal-recur: Incorrect timezone used for DTEND from DURATIONMilan Crha2020-02-251-0/+115
| | | | Closes https://gitlab.gnome.org/GNOME/evolution-data-server/issues/194
* I#162 - e-cal-recur: Ignores recurrence exceptionsMilan Crha2019-10-151-0/+106
| | | | Closes https://gitlab.gnome.org/GNOME/evolution-data-server/issues/162
* I#148 - Alarm for the end of a task not workingMilan Crha2019-08-292-0/+522
| | | | Closes https://gitlab.gnome.org/GNOME/evolution-data-server/issues/148
* Add workaround for D-Bus property change into get-revision testsMilan Crha2019-05-231-0/+13
| | | | | | | Even with the previous commit there still could happen some issue with D-Bus property change notifications, thus add a workaround to the related book and calendar tests, because it's not a problem on the evolution-data-server side, but somewhere deeper.
* I#33 - Port to libical-glibMilan Crha2019-05-1740-3101/+5293
| | | | Closes https://gitlab.gnome.org/GNOME/evolution-data-server/issues/33
* [test-cal-client-get-free-busy] Enhance the test executionMilan Crha2018-12-031-0/+54
| | | | | | | | | | | | | Couple changes in the test: 1) add also a component into the calendar, thus the returned Free/Busy component is not empty 2) let the sync variant wait for the D-Bus signal with Free/Busy data again 3) wait for the D-Bus signal in case it's not received in time of the method execution finish. Especially the 3) is important, because the D-Bus signal can be delivered after the method invocation is received, which could break the test.
* [test-cal-client-get-free-busy] Correct error messagesMilan Crha2018-11-281-4/+4
|
* test-cal-client-get-revision could fail due to delayed D-Bus property change ↵Milan Crha2018-11-131-3/+6
| | | | | | | | | | | notification The test had been mostly working, except cases when the delivery of a D-Bus property change signal had been delayed. Then the value on the client side was not the same as the value on the server side. There's a very similar test for EBookClient, which does slightly more things, which gives D-Bus enough time to deliver the property change to the client, thus this change adds the component removal to address it.
* Bug 788193 - [itip-formatter] Describe used recurrence, if possibleMilan Crha2018-03-122-0/+217
|
* Correct two libecal/client testsMilan Crha2017-04-102-2/+2
| | | | | | The main loop should be passed always as a user_data, because the function called from the callback expects it and there is no guarantee in which order the callbacks will be called.
* Replace deprecated icaltime_from_timet() with icaltime_from_timet_with_zone()Milan Crha2017-01-0512-13/+13
| | | | | | The upcoming libical release can have the deprecated symbol removed and the replacement is available in the requested minimum version of the libical already, thus no dependency change by replacing it.
* Bug 773723 - Fix a few annotations in libecalCorentin Noël2016-11-012-2/+2
|
* Reorganize directory structureMilan Crha2016-10-111-3/+4
| | | | | Let's have it as it's common to be, which means top level src/ for sources, single data/ for data, and so on.
* Convert from autotools to CMakeMilan Crha2016-10-104-206/+175
|
* Bug 692361 - e_cal_client_get_free_busy() brokenMilan Crha2015-07-152-15/+10
|
* Bug #727237 - Correct LGPL license information in sourcesMilan Crha2014-04-1434-8/+456
| | | | | | | | | | | | | | | | | | | I also added license information to source files where it was missing and changed the way the license block is organized. All the sources' license information comments follow the same pattern: /* [ Optional short file description ] * * [ Optional copyright notices] * * License information block * * [ Optional 'Authors:' section ] */ The LGPL is references consistently now; source files with main() function, like tests or D-Bus services, use 'program' in the license information block, while the other sources use 'library' word.
* Bug 721527 - License text contains obsolete FSF postal addressMatthew Barnes2014-01-072-22/+18
|
* Coding style and whitespace cleanups.Matthew Barnes2013-12-081-4/+4
|
* Moved all libecal/client tests to have a namespaceTristan Van Berkom2013-12-0415-43/+43
| | | | Avoid naming conflicts when installing tests into ${pkglibexecdir}/installed-tests
* Use EDS_INSTALLED_TESTS macros to install testsTristan Van Berkom2013-12-022-0/+17
| | | | | This commit adds the usage of EDS_INSTALLED_TESTS and a few lines to all the test directories which can run installed.
* Makefile.am cleanups.Matthew Barnes2013-11-172-76/+80
| | | | | - Remove trailing tabs. - Add terminators to multi-line lists.
* ECalClient tests: Use async apis to open the client for every async test.Tristan Van Berkom2013-10-1411-45/+67
|
* Remove all g_type_init() calls.Matthew Barnes2013-09-2732-96/+0
| | | | g_type_init() is deprecated in GLib 2.36.
* ECalClient test: test-client-get-revision not broken anymoreTristan Van Berkom2013-04-241-8/+1
| | | | Not sure how this is passing again, but it is.
* Bug 697705 - e_cal_client_remove_objects_sync() crashes on empty UIDMatthew Barnes2013-04-141-0/+25
|
* Test suite cleanups.Matthew Barnes2013-04-1432-115/+324
|
* ECalClient view tests, fixed ref counting.Tristan Van Berkom2013-03-162-0/+6
| | | | | Needed to unref the views in async tests on calendar views, not releasing the views cause the client to fail to finalize.
* Cleanup/Remove obsolete tests in tests/libecalTristan Van Berkom2013-03-1615-1345/+13
| | | | | Removed old test scripts, obsolete tests, and some functions from ecal-test-utils.[ch]
* Fixing makefile in tests/libecal/clientTristan Van Berkom2013-03-161-1/+1
| | | | | Fixed typo, BROKEN_TEST was meant to be BROKEN_TESTS, now the broken tests build, at least.
* Removing obsolete tests from test/libecal/clientTristan Van Berkom2013-03-1611-1302/+41
| | | | | Also managed to completely remove client-test-utils from this directory.
* Disabling tests in tests/libecal/clientTristan Van Berkom2013-03-161-4/+16
| | | | | | | | o Disabled the get-free-busy test, it wont pass as the API is broken by design o Disabled test-client-get-revision, this is not passing for now and should be reenabled once the backend property fetches are fixed to be explicit D-Bus methods again instead of property push notifications, see bug: https://bugzilla.gnome.org/show_bug.cgi?id=693464
* Coding style and whitespace cleanup.Matthew Barnes2013-03-023-8/+10
|
* tests: Silence compiler warnings.Matthew Barnes2013-03-012-0/+4
| | | | | Silence compiler warnings in tests which are already partially disabled. Most of these still haven't been updated since the ESource API changes.
* Clean up the mess that is CalObjModType.Matthew Barnes2013-01-285-10/+10
| | | | | | | | | | Deprecate both CalObjModType and EDataCalObjModType. Introduce ECalObjModType with equivalent but properly namespaced enum values, generate a GType for this enum, and swap out CalObjModType for ECalObjModType throughout the calendar API. Trying not to break the API here, but this is a freakin mess.
* Deprecate e_client_is_opened().Matthew Barnes2013-01-251-1/+0
| | | | This always returns TRUE now.
* test-ecal-get-objects-for-uid: Fixed assertions in test case.Tristan Van Berkom2013-01-231-6/+8
| | | | | | | | | Similar to test-ecal-create-object, this test was comparing a component built from scratch (with no UID) against a component fetched from the calendar (with a UID). Fixed test case to compare the components in the returned list against a component fetched from the calendar (both with UIDs).
* test-ecal-create-object: Fixed to assert something that makes sense.Tristan Van Berkom2013-01-231-5/+5
| | | | | | | | The old assertions were broken in that it compares the scratch component with no UID with the newly created and fetched component. Now simply check that the newly created component can be fetched and that it is 'valid'.