summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-09-06 10:55:04 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2023-09-06 12:41:51 +0200
commita06c580643ebcca37f0baac009534fd826602966 (patch)
tree8ffd05749a66a1d2cb14cb0822563e8cb54516ae /svx
parentee45ccecdad9a2945c1985a7ce553869ca297735 (diff)
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/qa/unit/table.cxx18
1 files changed, 18 insertions, 0 deletions
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)