fdo#76248 make the test fail without the fix
Change-Id: I26d27bfaafb83ee3ae74ce64bf72146b157ed7db
This commit is contained in:
@@ -2880,11 +2880,11 @@ DECLARE_OOXMLEXPORT_TEST(testSimpleSdts, "simple-sdts.docx")
|
|||||||
|
|
||||||
DECLARE_OOXMLEXPORT_TEST(testFDO76248, "FDO76248.docx")
|
DECLARE_OOXMLEXPORT_TEST(testFDO76248, "FDO76248.docx")
|
||||||
{
|
{
|
||||||
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
|
xmlDocPtr pXmlDoc = parseExport("word/document.xml");
|
||||||
uno::Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier(xModel->getCurrentController(), uno::UNO_QUERY);
|
if (!pXmlDoc)
|
||||||
uno::Reference<text::XPageCursor> xCursor(xTextViewCursorSupplier->getViewCursor(), uno::UNO_QUERY);
|
return;
|
||||||
xCursor->jumpToLastPage();
|
// In two cases the a:graphicData elements had no children, which is invalid.
|
||||||
CPPUNIT_ASSERT_EQUAL(sal_Int16(3), xCursor->getPage());
|
assertXPath(pXmlDoc, "//a:graphicData[not(*)]", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user