pidgin: bd0763d1: Add a test with a custom color
markdoliner at pidgin.im
markdoliner at pidgin.im
Fri Jul 31 05:35:22 EDT 2009
-----------------------------------------------------------------
Revision: bd0763d1ea8cfd0a51d68907f982108018044b94
Ancestor: 3f0362fa563604b4fffeef09f0e11b72c619e40c
Author: markdoliner at pidgin.im
Date: 2009-07-31T09:34:39
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bd0763d1ea8cfd0a51d68907f982108018044b94
Modified files:
libpurple/tests/test_yahoo_util.c
ChangeLog:
Add a test with a custom color
-------------- next part --------------
============================================================
--- libpurple/tests/test_yahoo_util.c e0cac17c2de7fe88796ac685da7d354569a635d6
+++ libpurple/tests/test_yahoo_util.c f5c799e99a03151eb9fbc08023acd91dba366c1c
@@ -18,15 +18,24 @@ 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"));
+ 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
More information about the Commits
mailing list