diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-03-10 21:28:23 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-03-11 09:43:58 +0100 |
commit | 4983e10459d1b1dcf53fbecafc37b1d9dc13f382 (patch) | |
tree | 5ee3ad850ad202bce7a08e294b6ef0913d6ff634 /sw/qa | |
parent | dde0cf9eafed91c88d9999a294ea32fe0e8aa4bc (diff) |
tdf#131260: Add unittest
Change-Id: Ic8d049c7b4a9005473c91cdb6200ae24b14e1a58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90306
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf131260.docx | bin | 0 -> 14773 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport14.cxx | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf131260.docx b/sw/qa/extras/ooxmlexport/data/tdf131260.docx Binary files differnew file mode 100644 index 000000000000..72e07abfd421 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf131260.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx index 9d2ab9444f00..447767e864f5 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx @@ -286,6 +286,16 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf92472, "tdf92472.docx") assertXPath(pXmlDoc, "/w:document/w:body/w:p[2]/w:r[5]/w:rPr/w:szCs", "val", "20"); } +DECLARE_OOXMLEXPORT_TEST(testTdf131260, "tdf131260.docx") +{ + uno::Reference<text::XTextTablesSupplier> xTablesSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference<container::XIndexAccess> xTables(xTablesSupplier->getTextTables(), + uno::UNO_QUERY); + // Without the accompanying fix in place, this test would have failed with: + // - Expected: 3 + // - Actual : 2 + CPPUNIT_ASSERT_EQUAL(sal_Int32(3), xTables->getCount()); +} DECLARE_OOXMLEXPORT_TEST(testTdf120315, "tdf120315.docx") { // tdf#120315 cells of the second column weren't vertically merged |