[Libreoffice-commits] core.git: sw/qa
Justin Luth
justin_luth at sil.org
Sun Jun 26 20:16:58 UTC 2016
sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit aa06a33946951e872b5e81d1c2bc8b7f60c861e1
Author: Justin Luth <justin_luth at sil.org>
Date: Sat Jun 25 19:43:35 2016 +0300
n#766487 additional docx testcase
This testcase has been a real thorn and adding this test
for the first page style will make it even worse.
original testcase commit b776233cba128bd7610834691da612b2b1a438a0
Change-Id: Ic9401da31849604c5afa1a511c128071bc562808
Reviewed-on: https://gerrit.libreoffice.org/26660
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index f29304f..cdac7d0 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -991,6 +991,10 @@ DECLARE_OOXMLIMPORT_TEST(testN780843, "n780843.docx")
uno::Reference<beans::XPropertySet> xPageStyle(getStyles("PageStyles")->getByName(aStyleName), uno::UNO_QUERY);
uno::Reference<text::XTextRange> xFooter = getProperty< uno::Reference<text::XTextRange> >(xPageStyle, "FooterText");
CPPUNIT_ASSERT_EQUAL(OUString("shown footer"), xFooter->getString());
+
+ xPara = getParagraph(1);
+ aStyleName = getProperty<OUString>(xPara, "PageStyleName");
+ CPPUNIT_ASSERT_EQUAL(OUString("First Page"), aStyleName);
}
DECLARE_OOXMLIMPORT_TEST(testShadow, "imgshadow.docx")
More information about the Libreoffice-commits
mailing list