pidgin: 6da9520a: Add testing for font size

markdoliner at pidgin.im markdoliner at pidgin.im
Fri Jul 31 05:20:51 EDT 2009


-----------------------------------------------------------------
Revision: 6da9520ac027d6503efb5c0f1cec75f90ff42669
Ancestor: 95c77fddc5da8679185e2f4587be5fb43d881844
Author: markdoliner at pidgin.im
Date: 2009-07-31T09:18:07
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6da9520ac027d6503efb5c0f1cec75f90ff42669

Modified files:
        libpurple/tests/test_yahoo_util.c

ChangeLog: 

Add testing for font size

-------------- next part --------------
============================================================
--- libpurple/tests/test_yahoo_util.c	1f0e7063855c2c494ff948ecb2629dc1c332e480
+++ libpurple/tests/test_yahoo_util.c	e0cac17c2de7fe88796ac685da7d354569a635d6
@@ -16,11 +16,17 @@ START_TEST(test_codes_to_html)
 START_TEST(test_codes_to_html)
 {
 	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"));
+
+	/* 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"));
 }
 END_TEST
 


More information about the Commits mailing list