svx/qa/unit/table.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
New commits: commit a06c580643ebcca37f0baac009534fd826602966 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Sep 6 10:55:04 2023 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Sep 6 12:41:51 2023 +0200 related: tdf#150557: improve test a bit Change-Id: Idf596d26a6b9cce29ae690a4975bff70f5f05ea2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156611 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/svx/qa/unit/table.cxx b/svx/qa/unit/table.cxx index 72359dbc7820..cc0c46efa21c 100644 --- a/svx/qa/unit/table.cxx +++ b/svx/qa/unit/table.cxx @@ -82,6 +82,24 @@ CPPUNIT_TEST_FIXTURE(Test, testTableShadowBlur) //- In <>, XPath contents of child does not match // i.e. the shadow's transparency was miscalculated. assertXPathContent(pDocument, "count(//objectinfo/unifiedtransparence)", "0"); + + assertXPath(pDocument, "//objectinfo/shadow[1]", "color", "#ff0000"); + assertXPath(pDocument, "//objectinfo/shadow[1]", "blur", "141"); + assertXPath(pDocument, "//objectinfo/shadow[2]", "color", "#ff0000"); + assertXPath(pDocument, "//objectinfo/shadow[2]", "blur", "141"); + assertXPath(pDocument, "//objectinfo/shadow[3]", "color", "#ff0000"); + assertXPath(pDocument, "//objectinfo/shadow[3]", "blur", "141"); + assertXPath(pDocument, "//objectinfo/shadow[4]", "color", "#ff0000"); + assertXPath(pDocument, "//objectinfo/shadow[4]", "blur", "141"); + assertXPath(pDocument, "//objectinfo/shadow[5]", "color", "#ff0000"); + assertXPath(pDocument, "//objectinfo/shadow[5]", "blur", "141"); + + assertXPath(pDocument, "//objectinfo/group/sdrCell[1]/unifiedtransparence", 0); + assertXPath(pDocument, "//objectinfo/group/sdrCell[2]/unifiedtransparence", 0); + assertXPath(pDocument, "//objectinfo/group/sdrCell[3]/unifiedtransparence", "transparence", + "80"); + assertXPath(pDocument, "//objectinfo/group/sdrCell[4]/unifiedtransparence", "transparence", + "80"); } CPPUNIT_TEST_FIXTURE(Test, testSvxTableControllerSetAttrToSelectedShape)