summaryrefslogtreecommitdiff
path: root/tests/libedata-book
Commit message (Collapse)AuthorAgeFilesLines
* Ported the lower level cursor tests to use EBookSqlite.Tristan Van Berkom2013-11-2918-1153/+1037
| | | | | | | | | | | | Refactored the whole test suite so that it's isolated to libedata-book, use the EBookSqlite directly. Now for the majority of test cases, we test with and without fields in the summary (with an empty summary configuration) and we also test the EBookSqlite with a callback to fetch vcards and without a callback. We also now test for e164 number change notifications in locale changes.
* Makefile.am cleanups.Matthew Barnes2013-11-171-58/+58
| | | | | - Remove trailing tabs. - Add terminators to multi-line lists.
* test-sqlite-cursor-set-sexp.c: Added test.Tristan Van Berkom2013-11-141-0/+58
| | | | New test steps the cursor after setting a search expression.
* Add missing CFLAGS/LIBS in the tests/ Makefile.am-sMilan Crha2013-11-051-0/+2
| | | | | | If the libical is installed in a different prefix than the one shared by other CFLAGS, then the test compilation breaks due to failed search for the <libical/ical.h> include file.
* Added tests for the low level cursor APITristan Van Berkom2013-10-2318-0/+2621
o test-sqlite-create-cursor The new test case verifies that cursor creation is well protected (cursor creation is denied for some queries and ordering requests). o test-sqlite-cursor-move-by This test case asserts that e_book_backend_sqlite_cursor_move_by() works as expected. Consequently, a hand full of additional test vcards were added for this. o test-sqlite-cursor-set-target.c This test case tests e_book_backend_sqlitedb_cursor_set_target(). The special case of setting a partial state is tested so that when a cursor is setup to sort by "family_name, given_name" and the target is set to "J", then we recieve results inclusive of the contact with the family name "J". o test-sqlite-cursor-calculate.c This test verifies that e_book_backend_sqlitedb_cursor_calculate() report the right position and total values when the cursor is moved, after the target is set, after the addressbook is modified, for filtered and unfiltered result sets. o test-sqlite-cursor-set-sexp.c This test verifies that invalid queries are rejected, and that a cursor position is changed by the new sexp with the correct new filtered values after applying a filter (sexp) to the cursor. o Tests to ensure that localized data is properly migrated: - test-sqlite-cursor-posix-initial - test-sqlite-cursor-en-US-migrated - test-sqlite-cursor-fr-CA-migrated - test-sqlite-cursor-de-DE-migrated - test-sqlite-cursor-posix-migrated o A test case testing basic ECollator features. This patch also changes the test case vcard data to specify a contact UID in each vcard's .vcf file, this allows us more flexability with the above added tests.