diff options
Diffstat (limited to 'sw/qa')
-rwxr-xr-x | sw/qa/extras/layout/data/tdf122800.odt | bin | 0 -> 14018 bytes | |||
-rw-r--r-- | sw/qa/extras/layout/layout.cxx | 20 |
2 files changed, 20 insertions, 0 deletions
diff --git a/sw/qa/extras/layout/data/tdf122800.odt b/sw/qa/extras/layout/data/tdf122800.odt Binary files differnew file mode 100755 index 000000000000..ff1e35cfb44b --- /dev/null +++ b/sw/qa/extras/layout/data/tdf122800.odt diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx index 7ed24771c661..79b55c80f191 100644 --- a/sw/qa/extras/layout/layout.cxx +++ b/sw/qa/extras/layout/layout.cxx @@ -41,6 +41,7 @@ public: void testTdf116830(); void testTdf114163(); void testTdf108021(); + void testTdf122800(); void testTdf116925(); void testTdf117028(); void testTdf106390(); @@ -79,6 +80,7 @@ public: CPPUNIT_TEST(testTdf116830); CPPUNIT_TEST(testTdf114163); CPPUNIT_TEST(testTdf108021); + CPPUNIT_TEST(testTdf122800); CPPUNIT_TEST(testTdf116925); CPPUNIT_TEST(testTdf117028); CPPUNIT_TEST(testTdf106390); @@ -2394,6 +2396,24 @@ void SwLayoutWriter::testTdf108021() // This failed, if the textarray length of the first axis label not 17. } +void SwLayoutWriter::testTdf122800() +{ + SwDoc* pDoc = createDoc("tdf122800.odt"); + SwDocShell* pShell = pDoc->GetDocShell(); + + // Dump the rendering of the first page as an XML file. + std::shared_ptr<GDIMetaFile> xMetaFile = pShell->GetPreviewMetaFile(); + MetafileXmlDump dumper; + xmlDocPtr pXmlDoc = dumpAndParse(dumper, *xMetaFile); + CPPUNIT_ASSERT(pXmlDoc); + + assertXPath( + pXmlDoc, + "/metafile/push[1]/push[1]/push[1]/push[3]/push[1]/push[1]/push[1]/textarray[@length='22']", + 9); + // This failed, if the textarray length of the first axis label not 22. +} + void SwLayoutWriter::testTdf116925() { SwDoc* pDoc = createDoc("tdf116925.docx"); |