Kaydet (Commit) 3e92847d authored tarafından Miklos Vajna's avatar Miklos Vajna

fdo#76248 make the test fail without the fix

Change-Id: I26d27bfaafb83ee3ae74ce64bf72146b157ed7db
üst 79747314
...@@ -2880,11 +2880,11 @@ DECLARE_OOXMLEXPORT_TEST(testSimpleSdts, "simple-sdts.docx") ...@@ -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
......
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