[Bug 31757] implement Proto.I.Avatars in Haze
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Sep 18 04:24:40 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=31757
--- Comment #13 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> ---
(In reply to comment #12)
> Comment on attachment 86043 [details] [review]
> protocol: implement get_avatar_details()
>
> Review of attachment 86043 [details] [review]:
> -----------------------------------------------------------------
>
> ::: src/protocol.c
> @@ +1003,5 @@
> > + PurpleBuddyIconSpec *icon_spec;
> > +
> > + icon_spec = &(self->priv->prpl_info->icon_spec);
> > +
> > + if (icon_spec == NULL || icon_spec->format == NULL)
>
> icon_spec will never be NULL: it's the address of something?
You're right, I copied it from old code that I changed afterwards. Fixed.
> ::: tests/twisted/cm/protocols.py
> @@ +173,5 @@
> > + assertEquals(32, protocol_avatar_props['MinimumAvatarHeight'])
> > + assertEquals(32, protocol_avatar_props['MinimumAvatarWidth'])
> > + assertEquals(0, protocol_avatar_props['RecommendedAvatarHeight'])
> > + assertEquals(0, protocol_avatar_props['RecommendedAvatarWidth'])
> > + assertEquals(['image/png'], protocol_avatar_props['SupportedAvatarMIMETypes'])
>
> assertContains would be more future-proof?
How so? We want to check the actual value, not just that the key is there.
--
You are receiving this mail because:
You are the QA Contact for the bug.
More information about the telepathy-bugs
mailing list