Commit bcf7e23f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

confirm if text extraction works fine for CMYK images.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29233 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2252b5be
......@@ -802,6 +802,13 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment