Commit 635f768d authored by Nicolas Delaby's avatar Nicolas Delaby

Depending of Language local settings of openoffice instance,

the size values can be converted from centimeter to inch.
Add support of this value.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41670 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2c4542ef
......@@ -1138,10 +1138,10 @@ return []
image_frame_list = content.xpath(image_frame_xpath, namespaces=content.nsmap)
self.assertTrue(len(image_frame_list) > 0)
image_frame = image_frame_list[0]
self.assertEqual(image_frame.attrib['{%s}height' % content.nsmap['svg']],
'0.838cm')
self.assertEqual(image_frame.attrib['{%s}width' % content.nsmap['svg']],
'0.838cm')
height = image_frame.attrib['{%s}height' % content.nsmap['svg']]
self.assertTrue(height in ('0.838cm', '0.3299in'))
width = image_frame.attrib['{%s}width' % content.nsmap['svg']]
self.assertTrue(width in ('0.838cm', '0.3299in'))
self._validate(odf_document)
# 02: no image data
......
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