summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2016-06-25 19:43:35 +0300
committerCaolán McNamara <caolanm@redhat.com>2016-06-26 20:16:31 +0000
commitaa06a33946951e872b5e81d1c2bc8b7f60c861e1 (patch)
treec564f610f26abfd0cecee3bf6e993dbbbeb20b3a
parentb075882016d8388d20cc7490eb0733a9d0d97a5f (diff)
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@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index f29304f5ecb8..cdac7d0a0fc5 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")