diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-06 15:44:41 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-06 15:54:57 +0100 |
commit | f69e8483a41db121fec0337adac37527c8fea7b5 (patch) | |
tree | 6356554f2a267265cd319b9a3cadd17971d1a116 /sw/qa | |
parent | dcea8ba3b4fc347e7b6d9e0d5ec2fd99bd77ce6f (diff) |
CppunitTest_sw_ooxmlexport: fix testcase that didn't fail without the fix
Change-Id: I87308b38bb44864db3531366ab354567847b1340
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index dae77bc9bbb8..a1cfd4c40b8f 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -2637,12 +2637,10 @@ DECLARE_OOXMLEXPORT_TEST(testTOCFlag_u,"testTOCFlag_u.docx") OUString contents = OUString::createFromAscii((const char*)((pXmlNode->children[0]).content)); CPPUNIT_ASSERT(contents.match(" TOC \\z \\o \"1-9\" \\u \\h")); } + DECLARE_OOXMLEXPORT_TEST(testTestTitlePage, "testTitlePage.docx") { - xmlDocPtr pXmlDoc = parseExport("word/document.xml"); - if (!pXmlDoc) - return; - assertXPathChildren(pXmlDoc, "/w:document/w:body/w:sectPr/w:titlePg", 0); + CPPUNIT_ASSERT_EQUAL(OUString("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), parseDump("/root/page[2]/footer/txt/text()")); } DECLARE_OOXMLEXPORT_TEST(testTableRowDataDisplayedTwice,"table-row-data-displayed-twice.docx") |