tests: tag: exif: Add tests for 'non-trivial' chars

Adds two new cases to check that characters are properly
converted to ascii when writen to exif and parsed correctly
back to utf8 when read.
This commit is contained in:
Thiago Santos 2011-08-10 13:16:13 -03:00
parent cd46e0ca13
commit 436c533624

View file

@ -1407,7 +1407,6 @@ do_simple_exif_tag_serialization_deserialization (const gchar * gsttag,
GstTagList *taglist = gst_tag_list_new (); GstTagList *taglist = gst_tag_list_new ();
gst_tag_list_add_value (taglist, GST_TAG_MERGE_REPLACE, gsttag, value); gst_tag_list_add_value (taglist, GST_TAG_MERGE_REPLACE, gsttag, value);
do_exif_tag_serialization_deserialization (taglist); do_exif_tag_serialization_deserialization (taglist);
gst_tag_list_free (taglist); gst_tag_list_free (taglist);
@ -1466,6 +1465,12 @@ GST_START_TEST (test_exif_tags_serialization_deserialization)
do_simple_exif_tag_serialization_deserialization (GST_TAG_APPLICATION_NAME, do_simple_exif_tag_serialization_deserialization (GST_TAG_APPLICATION_NAME,
&value); &value);
/* non ascii chars */
g_value_set_static_string (&value, "AaÄäEeËëIiÏïOoÖöUuÜü");
do_simple_exif_tag_serialization_deserialization (GST_TAG_ARTIST, &value);
g_value_set_static_string (&value, "Äë");
do_simple_exif_tag_serialization_deserialization (GST_TAG_ARTIST, &value);
/* image orientation tests */ /* image orientation tests */
g_value_set_static_string (&value, "rotate-0"); g_value_set_static_string (&value, "rotate-0");
do_simple_exif_tag_serialization_deserialization (GST_TAG_IMAGE_ORIENTATION, do_simple_exif_tag_serialization_deserialization (GST_TAG_IMAGE_ORIENTATION,