Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1646

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/46/1646/1

doc export: add unit test for bug i106749

Change-Id: I1df4cbb013d94cff7ae5195427044b1e1b2d8895
---
A sw/qa/extras/ww8export/data/new-page-styles.doc
M sw/qa/extras/ww8export/ww8export.cxx
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 0000000..c3886fd
--- /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 7c61d95..650fbbf 100644
--- a/sw/qa/extras/ww8export/ww8export.cxx
+++ b/sw/qa/extras/ww8export/ww8export.cxx
@@ -43,6 +43,7 @@
     void testFirstHeaderFooter();
     void testZoom();
     void test56513();
+    void testNewPageStylesTable();
 
     CPPUNIT_TEST_SUITE(Test);
 #if !defined(MACOSX) && !defined(WNT)
@@ -63,6 +64,7 @@
         {"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 @@
     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();

-- 
To view, visit https://gerrit.libreoffice.org/1646
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1df4cbb013d94cff7ae5195427044b1e1b2d8895
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Pierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.