[Erp5-report] r29233 - in /erp5/trunk/products/ERP5OOo/tests: ./ test_document/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Sep 28 16:59:40 CEST 2009


Author: kazuhiko
Date: Mon Sep 28 16:59:39 2009
New Revision: 29233

URL: http://svn.erp5.org?rev=29233&view=rev
Log:
confirm if text extraction works fine for CMYK images.

Added:
    erp5/trunk/products/ERP5OOo/tests/test_document/cmyk_sample.jpg   (with props)
Modified:
    erp5/trunk/products/ERP5OOo/tests/testDms.py

Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=29233&r1=29232&r2=29233&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Mon Sep 28 16:59:39 2009
@@ -802,6 +802,13 @@
     document.edit(file=upload_file)
     self.assertEquals('application/pdf', document.getContentType())
 
+  def test_CMYKImageTextContent(self):
+    upload_file = makeFileUpload('cmyk_sample.jpg')
+    document = self.portal.portal_contributions.newContent(file=upload_file)
+    self.assertEquals('Image', document.getPortalType())
+    self.assertEquals('ERP5 is a free software.\n',
+                      document.SearchableText())
+
 class TestDocumentWithSecurity(ERP5TypeTestCase):
 
   username = 'yusei'

Added: erp5/trunk/products/ERP5OOo/tests/test_document/cmyk_sample.jpg
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/test_document/cmyk_sample.jpg?rev=29233&view=auto
==============================================================================
Binary file - no diff available.

Propchange: erp5/trunk/products/ERP5OOo/tests/test_document/cmyk_sample.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg




More information about the Erp5-report mailing list