summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-06-08 19:36:22 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-06-11 13:51:28 +0200
commit87d28b3a6c3d2d442499672ad0dc1b6c9cd095d1 (patch)
tree192c4304da7d63dbbdfa807ae6550b4bbe14f261 /sw/qa
parenta585863f013aa4207270e11f5e031126adf1ed4a (diff)
test also for inline vml shape being anchored inline
This got broken by 0a412cc13edf0904524ee2cf1e38ccc36b713065. Change-Id: I8d500ea54bee8b09e1a01cf4cd14d08669f49a73
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmltok/ooxmltok.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmltok/ooxmltok.cxx b/sw/qa/extras/ooxmltok/ooxmltok.cxx
index dbd56cdaf2e5..c53a35fe154b 100644
--- a/sw/qa/extras/ooxmltok/ooxmltok.cxx
+++ b/sw/qa/extras/ooxmltok/ooxmltok.cxx
@@ -263,9 +263,11 @@ void Test::testN705956_1()
load( "n705956-1.docx" );
/*
Get the first image in the document and check it's the one image in the document.
+It should be also anchored inline (as character).
image = ThisComponent.DrawPage.getByIndex(0)
graphic = image.Graphic
xray graphic.Size
+xray image.AnchorType
*/
uno::Reference<text::XTextDocument> textDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPageSupplier> drawPageSupplier(textDocument, uno::UNO_QUERY);
@@ -279,6 +281,9 @@ xray graphic.Size
uno::Reference<awt::XBitmap> bitmap(graphic, uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL( static_cast<sal_Int32>(120), bitmap->getSize().Width );
CPPUNIT_ASSERT_EQUAL( static_cast<sal_Int32>(106), bitmap->getSize().Height );
+ text::TextContentAnchorType anchorType;
+ imageProperties->getPropertyValue( "AnchorType" ) >>= anchorType;
+ CPPUNIT_ASSERT_EQUAL( text::TextContentAnchorType_AS_CHARACTER, anchorType );
}
void Test::testN705956_2()