[folks] e-d-s: simplify property checking in add-persona test



commit 05eb522436c4f10f10f604a18e7f41454a78e3d6
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Sun Sep 4 13:41:19 2011 +0100

    e-d-s: simplify property checking in add-persona test

 tests/eds/add-persona.vala |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/tests/eds/add-persona.vala b/tests/eds/add-persona.vala
index 7eeec8f..8301256 100644
--- a/tests/eds/add-persona.vala
+++ b/tests/eds/add-persona.vala
@@ -338,7 +338,7 @@ public class AddPersonaTests : Folks.TestCase
         }
     }
 
-  private void _check_properties (Individual i)
+  private async void _check_properties (Individual i)
     {
       if (i.full_name == this._persona_fullname)
         this._properties_found.replace ("full_name", true);
@@ -400,14 +400,10 @@ public class AddPersonaTests : Folks.TestCase
         {
           var b = new FileIcon (File.new_for_path (this._avatar_path));
 
-          TestUtils.loadable_icons_content_equal.begin (b, i.avatar, -1,
-              (obj, result) =>
-            {
-              if (TestUtils.loadable_icons_content_equal.end (result))
-                this._properties_found.replace ("avatar", true);
-
-              this._exit_if_all_properties_found ();
-            });
+          var same = yield TestUtils.loadable_icons_content_equal (b, i.avatar,
+              -1);
+          if (same)
+            this._properties_found.replace ("avatar", true);
         }
 
       if (i.birthday != null)



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