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")
|
||||
{
|
||||
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
|
||||
uno::Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier(xModel->getCurrentController(), uno::UNO_QUERY);
|
||||
uno::Reference<text::XPageCursor> xCursor(xTextViewCursorSupplier->getViewCursor(), uno::UNO_QUERY);
|
||||
xCursor->jumpToLastPage();
|
||||
CPPUNIT_ASSERT_EQUAL(sal_Int16(3), xCursor->getPage());
|
||||
xmlDocPtr pXmlDoc = parseExport("word/document.xml");
|
||||
if (!pXmlDoc)
|
||||
return;
|
||||
// In two cases the a:graphicData elements had no children, which is invalid.
|
||||
assertXPath(pXmlDoc, "//a:graphicData[not(*)]", 0);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user