diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-12-04 12:45:11 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-12-04 21:32:25 +0100 |
commit | 58784b89c22c6d63fff18fea0aa6636a1370044c (patch) | |
tree | 964cd9df63e9f67eed0cc8c0d571fea4f8088398 /sw/qa | |
parent | 7ace16688c503795a5af0c82b63856b1e737aa87 (diff) |
tdf#113037 Watermark centered in DOC
Change-Id: I3b0383ef85f82c3076331026a49c0005f920ea61
Reviewed-on: https://gerrit.libreoffice.org/45804
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index 69ff0a74e643..9641350c13e0 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -1028,6 +1028,10 @@ void SwUiWriterTest::testWatermarkPosition() // Check if Watermark is inside a page CPPUNIT_ASSERT_MESSAGE(aMessage.str(), nPageHeight >= rRect.Bottom()); + + // Check if Watermark is centered + CPPUNIT_ASSERT_EQUAL(text::HoriOrientation::CENTER, getProperty<sal_Int16>(xShape, "HoriOrient")); + CPPUNIT_ASSERT_EQUAL(text::VertOrientation::CENTER, getProperty<sal_Int16>(xShape, "VertOrient")); } } |