- 27 May, 2013 33 commits
-
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
Added migration tests also for fr_CA and de_DE locale, the de_DE locale expects a @collation=phonebook type of sort order but only the test-sqlite-cursor-posix-initial test which creates the shared addressbook defines it, so we also test that the collation rule is properly stored and introspected in the SQLite tables.
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
No point in doing one for every locale, we test a bunch of locales already with the move-by test.
-
Tristan Van Berkom authored
Added new sortable vcards and changed the whole sortable data set. Now there are 4 move-by tests: posix, en_US, fr_CA and de_DE. All tests try the default and phonebook collation rules, the de_DE test data sorts differently under phonebook sort. A table was added to data-test-utils.h for reference, showing the expected order of sorted contacts in given locales.
-
Tristan Van Berkom authored
For now let's keep a single ECollator, it seems that we don't want to configure collation rules but rather have a single collator API which maintains a knowledge base of what tailoring to choose in which locale.
-
Tristan Van Berkom authored
Now check the ESourceBackendSummarySetup extension for custom collations, use a default ECollator for the current locale for every contact field unless a custom collation is specified, if a custom collation is specified for a given field then use a special ECollator to sort that field.
-
Tristan Van Berkom authored
This reverts commit 6a30b3f5164b782e6d0c1194930fd854fdb43a3d. Reverting this for now but keeping the history, apparently we do not want a configurable collation rule for addressbook fields, but rather an ECollator which chooses the most popular default.
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
Instead ECollator will try to make a best guess at what type of collation is desired for a given language
-
Tristan Van Berkom authored
The ECollator API wraps up the required ICU APIs into something more convenient for usage in EDS.
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
If a closure specifies async then the EBookClient or ECalClient will be opened using async APIs instead of sync APIs.
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
Reuse the same two addressbooks for every test, so that only the first 2 tests populate the addressbooks with contacts and the remaining tests only create a client and execute a query. Also add all test contacts with a single batch command and dont fetch the test contacts, also removed the #if 0'd case which is the only case which required the local contact copies.
-
Tristan Van Berkom authored
If committing the new scratch source ends with an error that the addressbook/calendar already exists, then just use the existing source instead of bailing out. This is needed for tests which reuse the addressbook from a previous test. Conflicts: tests/test-server-utils/e-test-server-utils.c
-
Tristan Van Berkom authored
E_BOOK_QUERY_REGEX_NORMAL is supported in summary queries if the query field is summarized, E_BOOK_QUERY_REGEX_RAW and normalized but non-summarized queries are delegated to EBookBackendSexp for matching.
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
Added E_BOOK_QUERY_REGEX_NORMAL and E_BOOK_QUERY_REGEX_RAW
-
Tristan Van Berkom authored
The added tests must run in the order specified in the Makefile: o test-sqlite-cursor-posix-initial Creates an addressbook sorted in POSIX locale and asserts that contacts are sorted in basic POSIX locale o test-sqlite-cursor-en-US-migrated Loads the existing address book in en_US-UTF-8 locale and asserts that contacts are sorted in the en_US-UTF-8 locale o test-sqlite-cursor-posix-migrated Loads the existing address book in POSIX locale again and asserts that contacts are sorted in the POSIX locale
-
Tristan Van Berkom authored
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.
-
Tristan Van Berkom authored
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.
-
Tristan Van Berkom authored
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".
-
Tristan Van Berkom authored
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.
-
Tristan Van Berkom authored
The new test case verifies that cursor creation is well protected (cursor creation is denied for some queries and ordering requests).
-
Tristan Van Berkom authored
In this new directory we can add tests for libedata-book backend components, currently there is a custom fixture which opens an EBookBackendSqliteDB on the same addressbook that an EBookClient opens, to test EBookBackendSqliteDB APIs directly on the addressbook. Conflicts: tests/Makefile.am
-
Tristan Van Berkom authored
Added the following APIs: o e_book_backend_sqlitedb_cursor_new() Creates a cursor for a given query expression and sort order o e_book_backend_sqlitedb_cursor_free() Frees a cursor and it's resources o e_book_backend_sqlitedb_cursor_move_by() Moves the cursor and fetches results o e_book_backend_sqlitedb_cursor_set_target() Sets the cursor state to a given position in the results o e_book_backend_sqlite_cursor_calculate() Calculates the position / total values of a cursor. o e_book_backend_sqlitedb_cursor_set_sexp() Sets the search expression for a given cursor Also restored DB overwrite when country code changes.
-
Mathias Hasselmann authored
Basically this is to tell e_test_server_utils_run() to not wipe the working directory before start. Conflicts: tests/test-server-utils/e-test-server-utils.h
-
- 24 May, 2013 1 commit
-
-
Matthew Barnes authored
(cherry picked from commit 1e8be126)
-
- 22 May, 2013 6 commits
-
-
David Woodhouse authored
They are broken and not thread-safe. Use GWeakRef instead to fix the original problem that they were introduced to fix (bug 638810). (cherry picked from commit 87b365d9)
-
Matthew Barnes authored
Spotted a few execution paths where we claim success but have no stream object for the fetched message. (cherry picked from commit 8e239df9)
-
Matthew Barnes authored
(cherry picked from commit f6de2239)
-
Matthew Barnes authored
* Make CamelNNTPStore's public members private. * Guard the private CamelNNTPStore members with a mutex. * Add thread-safe accessors: camel_nntp_store_ref_cache() camel_nntp_store_ref_stream() camel_nntp_store_ref_summary() camel_nntp_store_get_current_group() camel_nntp_store_dup_current_group() camel_nntp_store_set_current_group() camel_nntp_store_add_capabilities() camel_nntp_store_has_capabilities() camel_nntp_store_remove_capabilities() (cherry picked from commit fbf1ac4a)
-
Matthew Barnes authored
(cherry picked from commit 5d6f055c)
-
Matthew Barnes authored
(cherry picked from commit c9342840)
-