[folks] Fix the params used for the postal-address-details eds test
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Fix the params used for the postal-address-details eds test
- Date: Mon, 24 Oct 2011 19:18:17 +0000 (UTC)
commit 099063f11036158c55bd3f1bd613905099b5f0ed
Author: Travis Reitter <travis reitter collabora co uk>
Date: Wed Oct 19 19:30:33 2011 -0700
Fix the params used for the postal-address-details eds test
Helps: bgo#662433 - AbstractFieldDetails.equal() is ambiguous about
checking parameters.
tests/eds/postal-address-details.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/eds/postal-address-details.vala b/tests/eds/postal-address-details.vala
index a465f52..807fa3f 100644
--- a/tests/eds/postal-address-details.vala
+++ b/tests/eds/postal-address-details.vala
@@ -75,7 +75,7 @@ public class PostalAddressDetailsTests : Folks.TestCase
null, "eds_id");
this._postal_address = new PostalAddressFieldDetails (pa);
this._postal_address.add_parameter (this._postal_address.PARAM_TYPE,
- Edsf.Persona.address_fields[0]);
+ this._postal_address.PARAM_TYPE_HOME);
v = Value (typeof (string));
v.set_string (this._fullname);
@@ -91,9 +91,10 @@ public class PostalAddressDetailsTests : Folks.TestCase
null, "eds_id");
var pa_fd_copy = new PostalAddressFieldDetails (pa_copy);
pa_fd_copy.add_parameter (pa_fd_copy.PARAM_TYPE,
- Edsf.Persona.address_fields[0]);
+ this._postal_address.PARAM_TYPE_HOME);
v = Value (typeof (PostalAddressFieldDetails));
v.set_object (pa_fd_copy);
+ /* corresponds to address of type "home" */
c1.set (Edsf.Persona.address_fields[0], (owned) v);
this._eds_backend.add_contact (c1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]