From d46dbdabfb2f3b1885b0eb30bde4cc7652475292 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 31 Jul 2012 15:34:28 +0200 Subject: ephy-encoding: auto-calculate 'title-elided' and 'collation-key' They are derived from 'title', no need to pass them as parameters. --- tests/ephy-encodings-test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/ephy-encodings-test.c') diff --git a/tests/ephy-encodings-test.c b/tests/ephy-encodings-test.c index 791b99066..209aeb3cb 100644 --- a/tests/ephy-encodings-test.c +++ b/tests/ephy-encodings-test.c @@ -38,13 +38,12 @@ test_ephy_encodings_create () EphyEncoding *encoding; encoding = ephy_encoding_new ("UTF-8", "Unicode (UTF-8)", - "0xDEADBEEF", "0xDEADBEEF", LG_UNICODE); g_assert (encoding); g_assert_cmpstr (ephy_encoding_get_encoding (encoding), ==, "UTF-8"); g_assert_cmpstr (ephy_encoding_get_title (encoding), ==, "Unicode (UTF-8)"); - g_assert_cmpstr (ephy_encoding_get_title_elided (encoding), ==, "0xDEADBEEF"); - g_assert_cmpstr (ephy_encoding_get_collation_key (encoding), ==, "0xDEADBEEF"); + g_assert_cmpstr (ephy_encoding_get_title_elided (encoding), ==, "Unicode (UTF-8)"); + g_assert_cmpstr (ephy_encoding_get_collation_key (encoding), ==, "Unicode (UTF-8)"); g_assert_cmpint (ephy_encoding_get_language_groups (encoding), ==, LG_UNICODE); g_object_unref (encoding); -- cgit