summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ww8export
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com>2013-01-10 18:42:38 +0100
committerNoel Power <noel.power@suse.com>2013-01-11 16:35:23 +0000
commit1874df3041789729478ef99ff156ccee489c6a7a (patch)
treeeb8636a4f59a784e0cb1ed8fec72d70e40fc4bab /sw/qa/extras/ww8export
parent87c66e9e3d7ab1351fac8db9aad80ed01e7634b6 (diff)
doc export: add unit test for bug i106749
Change-Id: I1df4cbb013d94cff7ae5195427044b1e1b2d8895 Reviewed-on: https://gerrit.libreoffice.org/1646 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'sw/qa/extras/ww8export')
-rw-r--r--sw/qa/extras/ww8export/data/new-page-styles.docbin0 -> 38912 bytes
-rw-r--r--sw/qa/extras/ww8export/ww8export.cxx9
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8export/data/new-page-styles.doc b/sw/qa/extras/ww8export/data/new-page-styles.doc
new file mode 100644
index 000000000000..c3886fd6bf2d
--- /dev/null
+++ b/sw/qa/extras/ww8export/data/new-page-styles.doc
Binary files differ
diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx
index 7c61d952b6b9..650fbbff0212 100644
--- a/sw/qa/extras/ww8export/ww8export.cxx
+++ b/sw/qa/extras/ww8export/ww8export.cxx
@@ -43,6 +43,7 @@ public:
void testFirstHeaderFooter();
void testZoom();
void test56513();
+ void testNewPageStylesTable();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
@@ -63,6 +64,7 @@ void Test::run()
{"first-header-footer.doc", &Test::testFirstHeaderFooter},
{"zoom.doc", &Test::testZoom},
{"fdo56513.doc", &Test::test56513},
+ {"new-page-styles.doc", &Test::testNewPageStylesTable},
};
header();
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i)
@@ -154,6 +156,13 @@ void Test::test56513()
CPPUNIT_ASSERT_EQUAL(OUString("This is the non-first-page header of the second section"), parseDump("/root/page[3]/header/txt/text()"));
}
+void Test::testNewPageStylesTable()
+{
+ CPPUNIT_ASSERT_EQUAL(OUString("Sigma Space Performance Goals and Results (Page 1)*"), parseDump("/root/page[1]/header/txt/text()"));
+ CPPUNIT_ASSERT_EQUAL(OUString("Sigma Space Performance Assessment (Page 2)****"), parseDump("/root/page[2]/header/txt/text()"));
+ CPPUNIT_ASSERT_EQUAL(OUString("Sigma Space Performance Goals: Next Year (Page 3)*******"), parseDump("/root/page[3]/header/txt/text()"));
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();