summaryrefslogtreecommitdiff
path: root/svx/qa/unit/table.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/qa/unit/table.cxx')
-rw-r--r--svx/qa/unit/table.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/svx/qa/unit/table.cxx b/svx/qa/unit/table.cxx
index dc3ad1e2bf67..72359dbc7820 100644
--- a/svx/qa/unit/table.cxx
+++ b/svx/qa/unit/table.cxx
@@ -73,17 +73,15 @@ CPPUNIT_TEST_FIXTURE(Test, testTableShadowBlur)
drawinglayer::primitive2d::Primitive2DContainer xPrimitiveSequence
= renderPageToPrimitives(xDrawPage);
- // Then make sure that the cell fill part of the shadow is excluded from blurring:
+ // Then make sure that the cell fill part of the shadow has the expected transparency:
drawinglayer::Primitive2dXmlDump aDumper;
xmlDocUniquePtr pDocument = aDumper.dumpAndParse(xPrimitiveSequence);
// Without the accompanying fix in place, this test would have failed with:
- // - number of nodes is incorrect
- // - Expected: 1
- // - Actual : 0
- // i.e. the shadow itself was not transparent and that resulted in a non-transparent rendering
- // as well, while the rendering transparency should be based on the transparency of the shadow
- // itself and the transparency of the cell fill.
- assertXPath(pDocument, "//objectinfo/unifiedtransparence[1]", "transparence", "80");
+ //- Expected: 0
+ //- Actual : 2
+ //- In <>, XPath contents of child does not match
+ // i.e. the shadow's transparency was miscalculated.
+ assertXPathContent(pDocument, "count(//objectinfo/unifiedtransparence)", "0");
}
CPPUNIT_TEST_FIXTURE(Test, testSvxTableControllerSetAttrToSelectedShape)