[folks] Properly set the parameters for the eds/set-phones test
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Properly set the parameters for the eds/set-phones test
- Date: Mon, 24 Oct 2011 19:18:27 +0000 (UTC)
commit 9bb9f634a128052356e320c903a172a9cbe837c8
Author: Travis Reitter <travis reitter collabora co uk>
Date: Wed Oct 19 22:50:15 2011 -0700
Properly set the parameters for the eds/set-phones test
Helps: bgo#662433 - AbstractFieldDetails.equal() is ambiguous about
checking parameters.
tests/eds/set-phones.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]