[Libreoffice-commits] .: sw/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Jan 11 08:35:42 PST 2013
sw/qa/extras/ww8export/data/new-page-styles.doc |binary
sw/qa/extras/ww8export/ww8export.cxx | 9 +++++++++
2 files changed, 9 insertions(+)
New commits:
commit 1874df3041789729478ef99ff156ccee489c6a7a
Author: Pierre-Eric Pelloux-Prayer <pierre-eric at lanedo.com>
Date: Thu Jan 10 18:42:38 2013 +0100
doc export: add unit test for bug i106749
Change-Id: I1df4cbb013d94cff7ae5195427044b1e1b2d8895
Reviewed-on: https://gerrit.libreoffice.org/1646
Reviewed-by: Noel Power <noel.power at suse.com>
Tested-by: Noel Power <noel.power at suse.com>
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 0000000..c3886fd
Binary files /dev/null and b/sw/qa/extras/ww8export/data/new-page-styles.doc differ
diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx
index 7c61d95..650fbbf 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();
More information about the Libreoffice-commits
mailing list