[gimp/metadata-browser] metadata: Fixed test to accomodate libgexiv2 integration



commit 6fe3e365d231db7063d5aef53f9bd1282279a8ab
Author: Roman Joost <roman bromeco de>
Date:   Mon Mar 4 13:37:49 2013 +1000

    metadata: Fixed test to accomodate libgexiv2 integration

 plug-ins/metadata/tests/test-xmp-model.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/metadata/tests/test-xmp-model.c b/plug-ins/metadata/tests/test-xmp-model.c
index cdcf3c0..8cc21a4 100644
--- a/plug-ins/metadata/tests/test-xmp-model.c
+++ b/plug-ins/metadata/tests/test-xmp-model.c
@@ -117,7 +117,7 @@ test_xmp_model_set_get_scalar_property (GimpTestFixture *fixture,
   /* Contributor is a scalar property. When set, we expect the XMPModel
    * not to be empty any more and that we can retrieve the same value.
    **/
-  property_name = "me";
+  property_name = "me_text";
   result = xmp_model_set_scalar_property (fixture->xmp_model,
                                            "dc",
                                            "contributor",
@@ -131,8 +131,11 @@ test_xmp_model_set_get_scalar_property (GimpTestFixture *fixture,
   g_assert_cmpstr (scalar_value, ==, property_name);
 
   /* Now we assure, that we can even set titles, which is of type
-   * XMP_TYPE_LANG_ALT. This could be internally stored as a dictionary.
+   * XMP_TYPE_LANG_ALT.
+   * The scalar value returned is always the first value next to the
+   * language specifier.
    **/
+  property_name = "lang=\"x-default\" title_lang_alt";
   result = xmp_model_set_scalar_property (fixture->xmp_model,
                                           "dc",
                                           "title",
@@ -142,7 +145,7 @@ test_xmp_model_set_get_scalar_property (GimpTestFixture *fixture,
   scalar_value = xmp_model_get_scalar_property (fixture->xmp_model,
                                                 "dc",
                                                 "title");
-  g_assert_cmpstr (scalar_value, ==, property_name);
+  g_assert_cmpstr (scalar_value, ==, "title_lang_alt");
 
   /* The raw data for this type looks different tho. Because we only
    * changed the string represenation we expect it to return FALSE as


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]