summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-12-09 11:30:40 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-12-09 12:01:09 +0100
commitf7a8a5e48ae07551e0f513da57f95d81bdbab43a (patch)
tree69b416aa7f3e50159ea5f9c3361d91aa7aee0ec9 /sw/qa
parentf6c592b5e1722bd5b77de11c08d649b352f6e620 (diff)
drawingml import: read w:color
Change-Id: I6ae7ea8b58e262e5b6226f8f789e39ebcc6077ca
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 9c6510d94ece..722317999e53 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -1607,6 +1607,13 @@ DECLARE_OOXMLIMPORT_TEST(testMceNested, "mce-nested.docx")
uno::Reference<drawing::XShapeDescriptor> xShapeDescriptor(getShape(2), uno::UNO_QUERY);
// This was a com.sun.star.drawing.CustomShape, due to incorrect handling of wpg elements after a wps textbox.
CPPUNIT_ASSERT_EQUAL(OUString("com.sun.star.drawing.GroupShape"), xShapeDescriptor->getShapeType());
+
+ // Now check the top right textbox.
+ uno::Reference<container::XIndexAccess> xGroup(getShape(2), uno::UNO_QUERY);
+ uno::Reference<text::XText> xText = uno::Reference<text::XTextRange>(xGroup->getByIndex(1), uno::UNO_QUERY)->getText();
+ uno::Reference<text::XTextRange> xParagraph = getParagraphOfText(1, xText, "[Year]");
+ CPPUNIT_ASSERT_EQUAL(48.f, getProperty<float>(getRun(xParagraph, 1), "CharHeight"));
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(0xffffff), getProperty<sal_Int32>(getRun(xParagraph, 1), "CharColor"));
}
DECLARE_OOXMLIMPORT_TEST(testFdo70457, "fdo70457.docx")