[evolution-data-server/october-code-drop-post-api-change: 38/39] test-client-cursor-operations.c: Updated for move_by() -> step() API change.



commit f24ccc601e32eb5433b2f737161e1156dd5ff31e
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Thu Oct 24 22:39:02 2013 +0200

    test-client-cursor-operations.c: Updated for move_by() -> step() API change.

 .../client/test-client-cursor-operations.c         |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/tests/libebook/client/test-client-cursor-operations.c 
b/tests/libebook/client/test-client-cursor-operations.c
index 5741e82..178f973 100644
--- a/tests/libebook/client/test-client-cursor-operations.c
+++ b/tests/libebook/client/test-client-cursor-operations.c
@@ -2394,11 +2394,13 @@ main (gint argc,
                /* Supports transliterated queries */
                closure = cursor_closure_new (base_params[i].async, base_params[i].dra, "POSIX");
                cursor_closure_position (closure, 20, 0, TRUE);
-               cursor_closure_move_by (closure,
-                                       E_BOOK_CURSOR_ORIGIN_CURRENT,
-                                       10, /* Count */
-                                       10, /* Expected results */
-                                       11, 2,  6,  3,  8, 1,  5,  4,  7,  15);
+
+               cursor_closure_step (closure,
+                                    E_BOOK_CURSOR_STEP_MOVE | E_BOOK_CURSOR_STEP_FETCH,        
+                                    E_BOOK_CURSOR_ORIGIN_CURRENT,
+                                    10, /* Count */
+                                    10, /* Expected results */
+                                    11, 2,  6,  3,  8, 1,  5,  4,  7,  15);
                cursor_closure_position (closure, 20, 10, TRUE);
                cursor_closure_set_sexp (closure,
                                         e_book_query_field_test (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]