Mercurial > pidgin.yaz
changeset 21164:dada0e6416cc
merge of 'eb14385d2f3d84e0bdd1b158200baa76f86da3a2'
and 'ff5b50d410a4c5d305fbbaacab5465581332c254'
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 08 Nov 2007 02:47:12 +0000 |
parents | 50970c85709a (current diff) 1dd6704cd187 (diff) |
children | 184f5991502d |
files | pidgin/pixmaps/icons/16/Makefile.mingw pidgin/pixmaps/icons/24/Makefile.mingw pidgin/pixmaps/icons/32/Makefile.mingw pidgin/pixmaps/icons/48/Makefile.mingw |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/tests/test_util.c Wed Nov 07 17:22:36 2007 +0000 +++ b/libpurple/tests/test_util.c Thu Nov 08 02:47:12 2007 +0000 @@ -81,6 +81,18 @@ } END_TEST +START_TEST(test_markup_html_to_xhtml) +{ + gchar *xhtml = NULL; + gchar *plaintext = NULL; + purple_markup_html_to_xhtml("<a>", &xhtml, &plaintext); + fail_unless(strcmp("<a href=''></a>", xhtml) == 0, NULL); + g_free(xhtml); + fail_unless(strcmp("", plaintext) == 0, NULL); + g_free(plaintext); +} +END_TEST + Suite * util_suite(void) { @@ -113,5 +125,9 @@ tcase_add_test(tc, test_util_str_to_time); suite_add_tcase(s, tc); + tc = tcase_create("Markup"); + tcase_add_test(tc, test_markup_html_to_xhtml); + suite_add_tcase(s, tc); + return s; }