diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-19 14:09:51 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-19 14:16:11 +0100 |
commit | 3e92847d75e8703d0537d5411d1f98bd1cd0402a (patch) | |
tree | 5a79c095fbbbb28345ee4fb107e675ed91745c0b | |
parent | 79747314d368ab253e171877209d7172fd993c74 (diff) |
fdo#76248 make the test fail without the fix
Change-Id: I26d27bfaafb83ee3ae74ce64bf72146b157ed7db
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 6a50defc8c35..ee6c51168f2c 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -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 |