diff options
author | Sadrul Habib Chowdhury <sadrul@pidgin.im> | 2009-10-06 15:56:43 +0000 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@pidgin.im> | 2009-10-06 15:56:43 +0000 |
commit | 639c8907141cbce27ae1bd9ffae529da8b09132d (patch) | |
tree | 3cce1519c6bbf72e917e50d0a15a9a89554912ce /libpurple/tests | |
parent | 083855304fed160d6954cd62b5681c0bb82b19fd (diff) | |
download | pidgin-639c8907141cbce27ae1bd9ffae529da8b09132d.tar.gz |
Fix sending /buzz on yahoo.
Yahoo buzzes are '<ding>' sent as normal IMs. 'ding' is an unknown tag,
and we were stripping unknown tags. So instead, send the tags we don't
recognize as they are without stripping/changing them.
... or perhaps we could treat 'ding' as a known tag instead?
Added test cases.
Diffstat (limited to 'libpurple/tests')
-rw-r--r-- | libpurple/tests/test_yahoo_util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libpurple/tests/test_yahoo_util.c b/libpurple/tests/test_yahoo_util.c index 4a049c53a1..bbcc86abd3 100644 --- a/libpurple/tests/test_yahoo_util.c +++ b/libpurple/tests/test_yahoo_util.c @@ -180,6 +180,12 @@ START_TEST(test_html_to_codes) assert_string_equal_free("\x1B[1mbold \x1B[#FF0000mred <font face=\"Comic Sans MS\" size=\"20\">larger \x1B[#000000mbacktoblack <font size=\"12\">normalsize</font>\x1B[#FF0000m</font>\x1B[#000000m\x1B[x1m", yahoo_html_to_codes("<b>bold <font color=\"#FF0000\">red <font face=\"Comic Sans MS\" size=\"5\">larger <font color=\"#000000\">backtoblack <font size=\"3\">normalsize</font></font></font></font></b>")); + + /* buzz/unknown tags */ + assert_string_equal_free("<ding>", + yahoo_html_to_codes("<ding>")); + assert_string_equal_free("Unknown <tags>", + yahoo_html_to_codes("Unknown <tags>")); } END_TEST |