summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-21 22:46:55 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-24 19:57:58 -0500
commit6349912d021a8f2cf0c963952736baed72a6aa83 (patch)
treee7026c1247f0b282190a0856b38a0e722dfbd46e /tests
parentc33714521a0139529d1c3fa7223d72108f157b95 (diff)
downloadpango-6349912d021a8f2cf0c963952736baed72a6aa83.tar.gz
Rename the serialize errors
They are produced by deserialization, so call them that.
Diffstat (limited to 'tests')
-rw-r--r--tests/testserialize.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testserialize.c b/tests/testserialize.c
index 5fb7543a..b09b6ac3 100644
--- a/tests/testserialize.c
+++ b/tests/testserialize.c
@@ -257,7 +257,7 @@ test_serialize_layout_invalid (void)
" }\n"
" ]\n"
"}",
- PANGO_LAYOUT_SERIALIZE_INVALID_VALUE
+ PANGO_LAYOUT_DESERIALIZE_INVALID_VALUE
},
{
"{\n"
@@ -267,7 +267,7 @@ test_serialize_layout_invalid (void)
" }\n"
" ]\n"
"}",
- PANGO_LAYOUT_SERIALIZE_MISSING_VALUE
+ PANGO_LAYOUT_DESERIALIZE_MISSING_VALUE
},
{
"{\n"
@@ -278,13 +278,13 @@ test_serialize_layout_invalid (void)
" }\n"
" ]\n"
"}",
- PANGO_LAYOUT_SERIALIZE_INVALID_VALUE
+ PANGO_LAYOUT_DESERIALIZE_INVALID_VALUE
},
{
"{\n"
" \"alignment\" : \"nonsense\"\n"
"}",
- PANGO_LAYOUT_SERIALIZE_INVALID_VALUE
+ PANGO_LAYOUT_DESERIALIZE_INVALID_VALUE
}
};
@@ -301,7 +301,7 @@ test_serialize_layout_invalid (void)
bytes = g_bytes_new_static (test[i].json, -1);
layout = pango_layout_deserialize (context, bytes, &error);
g_assert_null (layout);
- g_assert_error (error, PANGO_LAYOUT_SERIALIZE_ERROR, test[i].expected_error);
+ g_assert_error (error, PANGO_LAYOUT_DESERIALIZE_ERROR, test[i].expected_error);
g_bytes_unref (bytes);
g_clear_error (&error);
}