From: Travis Reitter Date: Thu, 20 Oct 2011 05:50:15 +0000 (-0700) Subject: Properly set the parameters for the eds/set-phones test X-Git-Tag: FOLKS_0_6_5~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9bb9f634a128052356e320c903a172a9cbe837c8;p=platform%2Fupstream%2Ffolks.git Properly set the parameters for the eds/set-phones test Helps: bgo#662433 - AbstractFieldDetails.equal() is ambiguous about checking parameters. --- diff --git a/tests/eds/set-phones.vala b/tests/eds/set-phones.vala index 661d5ba..0452ab1 100644 --- a/tests/eds/set-phones.vala +++ b/tests/eds/set-phones.vala @@ -141,7 +141,9 @@ public class SetPhonesTests : Folks.TestCase Folks.Individual i = (Folks.Individual) individual_obj; foreach (var phone_fd in i.phone_numbers) { - if (phone_fd.equal (new PhoneFieldDetails ("1234"))) + var phone_1 = new PhoneFieldDetails ("1234"); + phone_1.set_parameter (phone_1.PARAM_TYPE, phone_1.PARAM_TYPE_HOME); + if (phone_fd.equal (phone_1)) { this._found_after_update = true; this._main_loop.quit ();