[gimp/metadata-browser] metadata: tests also with exif data



commit 9dc69dbfd85541ebb37e1dbfcd9b4fdcebb2d247
Author: Roman Joost <roman bromeco de>
Date:   Thu Feb 28 10:33:53 2013 +1000

    metadata: tests also with exif data

 plug-ins/metadata/tests/files/test.xmp             |    6 ++++--
 .../metadata/tests/test-xmp-model-functional.c     |    1 -
 plug-ins/metadata/tests/test-xmp-model.c           |    4 ++++
 3 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/metadata/tests/files/test.xmp b/plug-ins/metadata/tests/files/test.xmp
index 086ea11..0437d4f 100644
--- a/plug-ins/metadata/tests/files/test.xmp
+++ b/plug-ins/metadata/tests/files/test.xmp
@@ -29,8 +29,10 @@
  </rdf:Description>
 
  <rdf:Description rdf:about=""
-   xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/";>
-   <photoshop:CaptionWriter>Description Writer</photoshop:CaptionWriter>
+   xmlns:exif="http://ns.adobe.com/exif/1.0/";>
+   <exif:ExifVersion>0220</exif:ExifVersion>
+   <exif:CompressedBitsPerPixel>5/1</exif:CompressedBitsPerPixel>
+   <exif:DateTimeOriginal>2004-11-01T14:53:15+10:00</exif:DateTimeOriginal>
  </rdf:Description>
 </rdf:RDF>
 </x:xmpmeta>
diff --git a/plug-ins/metadata/tests/test-xmp-model-functional.c 
b/plug-ins/metadata/tests/test-xmp-model-functional.c
index df02352..b6de1c4 100644
--- a/plug-ins/metadata/tests/test-xmp-model-functional.c
+++ b/plug-ins/metadata/tests/test-xmp-model-functional.c
@@ -53,7 +53,6 @@ static TestDataEntry propertiestotest[] =
    { XMP_PREFIX_DUBLIN_CORE,  "creator",        0 },
    { XMP_PREFIX_DUBLIN_CORE,  "description",    1 },
    { XMP_PREFIX_DUBLIN_CORE,  "subject",        0 },
-   { XMP_PREFIX_PHOTOSHOP,    "CaptionWriter",  0 },
    { NULL,  NULL,          0 }
 };
 TestDataEntry * const import_exportdata = propertiestotest;
diff --git a/plug-ins/metadata/tests/test-xmp-model.c b/plug-ins/metadata/tests/test-xmp-model.c
index 754cae3..cdcf3c0 100644
--- a/plug-ins/metadata/tests/test-xmp-model.c
+++ b/plug-ins/metadata/tests/test-xmp-model.c
@@ -271,6 +271,10 @@ test_xmp_model_parse_file (GimpTestFixture *fixture,
   value = xmp_model_get_scalar_property (fixture->xmp_model, "dc", "description");
   g_assert_cmpstr (value, == , "lang=\"x-default\" bla, lang=\"de_de\" Deutsche Beschreibung");
 
+  // exif
+  value = xmp_model_get_scalar_property (fixture->xmp_model, "exif", "CompressedBitsPerPixel");
+  g_assert_cmpstr (value, == , "5/1");
+
   g_free (uri);
 }
 


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