Mercurial > pidgin
changeset 27774:9d43d9d33477
merge of '9f7ecfce039e8a59bfb603622d5aed0102ea2d72'
and 'bd0763d1ea8cfd0a51d68907f982108018044b94'
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Fri, 31 Jul 2009 14:40:03 +0000 |
parents | 087c926fdb1c (current diff) 59d45eb5f9c9 (diff) |
children | 1ea1aee71848 07de864fc024 0907b0c775bb |
files | |
diffstat | 1 files changed, 16 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/tests/test_yahoo_util.c Fri Jul 31 10:04:43 2009 +0000 +++ b/libpurple/tests/test_yahoo_util.c Fri Jul 31 14:40:03 2009 +0000 @@ -18,15 +18,24 @@ assert_string_equal_free("plain", yahoo_codes_to_html("plain")); /* bold/italic/underline */ - assert_string_equal_free("<b>bold", yahoo_codes_to_html("\x1B[1mbold")); - assert_string_equal_free("<i>italic", yahoo_codes_to_html("\x1B[2mitalic")); - assert_string_equal_free("<u>underline", yahoo_codes_to_html("\x1B[4munderline")); - assert_string_equal_free("<b>bold</b> <i>italic</i> <u>underline", yahoo_codes_to_html("\x1B[1mbold\x1B[x1m \x1B[2mitalic\x1B[x2m \x1B[4munderline")); + assert_string_equal_free("<b>bold", + yahoo_codes_to_html("\x1B[1mbold")); + assert_string_equal_free("<i>italic", + yahoo_codes_to_html("\x1B[2mitalic")); + assert_string_equal_free("<u>underline", + yahoo_codes_to_html("\x1B[4munderline")); + assert_string_equal_free("<b>bold</b> <i>italic</i> <u>underline", + yahoo_codes_to_html("\x1B[1mbold\x1B[x1m \x1B[2mitalic\x1B[x2m \x1B[4munderline")); /* font color and size */ - assert_string_equal_free("<span style=\"color: #0000FF\">blue", yahoo_codes_to_html("\x1B[31mblue")); - assert_string_equal_free("<font size=\"4\" absz=\"15\">test", yahoo_codes_to_html("<font size=\"15\">test")); - assert_string_equal_free("<span style=\"color: #FF0080\"><font size=\"4\" absz=\"15\">test", yahoo_codes_to_html("\x1B[35m<font size=\"15\">test")); + assert_string_equal_free("<span style=\"color: #0000FF\">blue", + yahoo_codes_to_html("\x1B[31mblue")); + assert_string_equal_free("<span style=\"color: #70ea15\">test", + yahoo_codes_to_html("\x1B[#70ea15mtest")); + assert_string_equal_free("<font size=\"4\" absz=\"15\">test", + yahoo_codes_to_html("<font size=\"15\">test")); + assert_string_equal_free("<span style=\"color: #FF0080\"><font size=\"4\" absz=\"15\">test", + yahoo_codes_to_html("\x1B[35m<font size=\"15\">test")); } END_TEST