aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-07-31 21:34:28 +0800
committerXan Lopez <xan@igalia.com>2012-07-31 21:34:28 +0800
commitd46dbdabfb2f3b1885b0eb30bde4cc7652475292 (patch)
tree357996ecacdac23511fe01eff47655e1222482f9 /tests
parenta9b77ec4948dd2db2b3aef808e29c97aaa782589 (diff)
downloadgsoc2013-epiphany-d46dbdabfb2f3b1885b0eb30bde4cc7652475292.tar
gsoc2013-epiphany-d46dbdabfb2f3b1885b0eb30bde4cc7652475292.tar.gz
gsoc2013-epiphany-d46dbdabfb2f3b1885b0eb30bde4cc7652475292.tar.bz2
gsoc2013-epiphany-d46dbdabfb2f3b1885b0eb30bde4cc7652475292.tar.lz
gsoc2013-epiphany-d46dbdabfb2f3b1885b0eb30bde4cc7652475292.tar.xz
gsoc2013-epiphany-d46dbdabfb2f3b1885b0eb30bde4cc7652475292.tar.zst
gsoc2013-epiphany-d46dbdabfb2f3b1885b0eb30bde4cc7652475292.zip
ephy-encoding: auto-calculate 'title-elided' and 'collation-key'
They are derived from 'title', no need to pass them as parameters.
Diffstat (limited to 'tests')
-rw-r--r--tests/ephy-encodings-test.c5
1 files changed, 2 insertions, 3 deletions
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);