summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* utils/source-discoverer: Test URI before discoveryGeorges Basile Stavracas Neto2023-03-051-0/+38
| | | | | | | | | This makes sure that we have a valid host set. This check is copies from Soup's private SOUP_URI_IS_VALID() macro. Add a test for this behavior. Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/794
* tests: Set bug baseGeorges Basile Stavracas Neto2023-03-054-0/+4
|
* Port to libsoup3Milan Crha2022-06-224-91/+114
|
* range: Handle zero-length ranges when calculating overlapSebastian Keller2021-04-211-0/+32
| | | | | | | | | | | | | | | | Zero length ranges, such as for events without a DTEND could be considered to overlap a range if they were at exactly the end of the range. The end of a range however is the first date that is supposed to not overlap, so a zero-length range on exactly this point should not be considered overlapping. This fixes cases where all-day events from the next month could show up on the same day of the current month if they did not have a DTEND. This also adds tests for all possible cases of such zero-length events overlapping. Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/701
* tests: Disable unauthorized test againGeorges Basile Stavracas Neto2021-03-221-3/+3
| | | | | | Needs more love. Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/700
* tests: Enable unauthorized discovery testGeorges Basile Stavracas Neto2021-03-121-8/+8
| | | | This one is actually implemented, what's not implemented is the WebDAV one.
* event: Add API to clone eventsGeorges Basile Stavracas Neto2020-06-151-0/+26
| | | | | | | This will be useful for updating events without having to keep track of the event states. Add the new API, and also a unit test.
* tests: Trivial cleanupGeorges Basile Stavracas Neto2020-06-151-1/+0
|
* event: Add more range test casesClarissa Borges2020-04-141-0/+54
| | | | | More examples of possible dates for events were added to the test cases. Superset, subset, intersection and no overlap cases are covered.
* range-tree: Use GcalRangeGeorges Basile Stavracas Neto2020-04-141-26/+33
|
* Introduce GcalRangeGeorges Basile Stavracas Neto2020-04-142-0/+162
| | | | | GcalRange is a new structure that represents a time range. It is always inclusive at the start, and exclusive at the end.
* range-tree: Add API to remove dataGeorges Basile Stavracas Neto2020-04-011-0/+41
| | | | | It'll be useful to remove entries without knowing their range.
* range-tree: Switch to use GDateTimeGeorges Basile Stavracas Neto2020-04-012-0/+156
| | | | | | | Using raw integers forces us to select a pre-defined start and end ranges for the timeline. Since we want to reuse this data structure on GcalTimeline, make it a bit more useful.
* manager: add GcalContext propertyMichael Catanzaro2019-09-192-48/+0
| | | | | | | This improves access to the GcalContext inside GcalManager. Also, remove test-manager since it only tests that gcal_manager_new() returns non-NULL.
* tests: Temporarily disable discoverer testGeorges Basile Stavracas Neto2019-07-161-3/+3
|
* Introduce new source discovererGeorges Basile Stavracas Neto2019-07-133-1/+192
| | | | | | | | | | | | | | | The new source discoverer is a complete overhaul of the current code. It is async-only, correctly threaded, and easier to maintain. A major new feature of this web source discoverer is that it now pings the server to see if the URL feeds us back with an iCalendar file. Furthermore, it continues to use E-D-S WebDAV discovery functions as a fallback mechanism. Fixes #380
* tests: Add calendar server and testsGeorges Basile Stavracas Neto2019-07-135-0/+674
| | | | | This will be used to write a propert test suite for the new calendar discoverer code.
* build: Improve test generationGeorges Basile Stavracas Neto2019-07-131-23/+15
|
* tests: Fix test suiteGeorges Basile Stavracas Neto2019-05-044-13/+137
| | | | | | | Introduce a new GcalStubCalendar class that essentially removes the ECalClient initialization from GcalCalendar, and use it as part of a new private library consumed by the tests.
* project: Move a few classes to core/Georges Basile Stavracas Neto2019-05-041-4/+6
|
* utils: Add GDateTime utilsGeorges Basile Stavracas Neto2019-04-261-1/+1
| | | | | This will greatly help with the transition to GDateTime. In the future, we can propose these APIs to GLib itself.
* tests: Set TZ before running testsGeorges Basile Stavracas Neto2018-07-311-0/+2
| | | | | Otherwise, we're depending on the host machine to run the tests.
* tests: update multiday testGeorges Basile Stavracas Neto2018-04-301-1/+1
| | | | | Until we have a better control over the system timezone, let's not hit that issue.
* tests: add more event testsGeorges Basile Stavracas Neto2018-02-271-14/+185
|
* test: properly initialize variablesGeorges Basile Stavracas Neto2018-02-261-4/+4
|
* tests: Add event testGeorges Basile Stavracas Neto2018-02-262-0/+79
|
* tests: reorganize meson fileGeorges Basile Stavracas Neto2018-02-261-7/+7
|
* tests: Fix GCalManager testIñigo Martínez2018-02-111-11/+18
| | | | | | | | | | | The unit test that checks GCalManager test fails due to missing schemas. This patch allows schemas to be compiled in the build tree and also sets the environment variables so tests can found them and run properly. Additional code and testing from Mohammed Sadiq <sadiq@sadiqpk.org>
* project: don't install private libraryGeorges Basile Stavracas Neto2017-09-081-1/+3
| | | | | | Instead, bring back building all the objects into calendar itself, and only use the private library internally.
* application: move GSettings object to GcalManagerGeorges Basile Stavracas Neto2017-09-071-5/+3
| | | | | | | | | | The first outcome of the test suite. This separation does not make much sense now, and GcalManager is basically a holder for all data types. This commit moves the GSettings to the GcalManager instance of the application. Of course, in the future, the plan is to split GcalManager nicely.
* tests: add initial test suiteGeorges Basile Stavracas Neto2017-09-072-0/+66