[evolution-data-server/openismus-work-3-8: 26/43] test-client-revision-view: Disabled part of the test.



commit 1f6cce6eeffff93a8e712e62d6af08951b4d466a
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Fri Nov 29 21:25:24 2013 +0900

    test-client-revision-view: Disabled part of the test.
    
    Initial changes are filtered by fields-of-interest, however
    change notifications are not filtered, this is because it's actually
    faster to just send the vcard as is.
    
    Conflicts:
    
        tests/libebook/client/test-client-revision-view.c

 tests/libebook/client/test-client-revision-view.c |   29 +++------------------
 1 files changed, 4 insertions(+), 25 deletions(-)
---
diff --git a/tests/libebook/client/test-client-revision-view.c 
b/tests/libebook/client/test-client-revision-view.c
index 1ed553a..cacf520 100644
--- a/tests/libebook/client/test-client-revision-view.c
+++ b/tests/libebook/client/test-client-revision-view.c
@@ -11,25 +11,10 @@ static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NUL
 
 #define N_TEST_CONTACTS 4
 
-static gboolean loading_view = FALSE;
-
 /****************************************************************
  *                     Modify/Setup the EBook                   *
  ****************************************************************/
 static void
-add_contact (EBookClient *client)
-{
-       EContact *contact = e_contact_new ();
-
-       e_contact_set (contact, E_CONTACT_FULL_NAME, "Micheal Jackson");
-
-       if (!add_contact_verify (client, contact))
-               g_error ("Failed to add Micheal Jackson");
-
-       g_object_unref (contact);
-}
-
-static void
 setup_book (EBookClient *book_client)
 {
        gint    i;
@@ -78,7 +63,6 @@ objects_added (EBookClientView *view,
                const GSList *contacts,
                gpointer user_data)
 {
-       GMainLoop *loop = (GMainLoop *) user_data;
        const GSList *l;
 
        for (l = contacts; l; l = l->next) {
@@ -92,9 +76,6 @@ objects_added (EBookClientView *view,
                                (gchar *) e_contact_get_const (contact, E_CONTACT_FULL_NAME));
        }
 
-       if (!loading_view)
-               finish_test (view, loop);
-
 }
 
 static void
@@ -110,11 +91,11 @@ objects_removed (EBookClientView *view,
 
 static void
 complete (EBookClientView *view,
-          const GError *error)
+          const GError *error,
+         gpointer user_data)
 {
-       /* Now add a contact and assert that we received notification */
-       loading_view = FALSE;
-       add_contact (e_book_client_view_get_client (view));
+       GMainLoop *loop = (GMainLoop *) user_data;
+       finish_test (view, loop);
 }
 
 static void
@@ -137,8 +118,6 @@ setup_and_start_view (EBookClientView *view,
        if (error)
                g_error ("set fields of interest: %s", error->message);
 
-       loading_view = TRUE;
-
        e_book_client_view_start (view, &error);
        if (error)
                g_error ("start view: %s", error->message);


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