summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2import.cxx26
1 files changed, 17 insertions, 9 deletions
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx
index 7933001f6b32..251c8a188833 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -82,22 +82,30 @@ void Chart2ImportTest::Fdo60083()
CPPUNIT_ASSERT(xErrorBarYProps.is());
{
sal_Int32 nErrorBarStyle;
- xErrorBarYProps->getPropertyValue("ErrorBarStyle") >>= nErrorBarStyle;
- CPPUNIT_ASSERT_EQUAL(nErrorBarStyle, static_cast<sal_Int32>(chart::ErrorBarStyle::RELATIVE));
+ CPPUNIT_ASSERT(
+ xErrorBarYProps->getPropertyValue("ErrorBarStyle")
+ >>= nErrorBarStyle);
+ CPPUNIT_ASSERT_EQUAL(
+ static_cast<sal_Int32>(chart::ErrorBarStyle::RELATIVE),
+ nErrorBarStyle);
double nVal;
- xErrorBarYProps->getPropertyValue("PositiveError") >>= nVal;
+ CPPUNIT_ASSERT(
+ xErrorBarYProps->getPropertyValue("PositiveError") >>= nVal);
CPPUNIT_ASSERT_DOUBLES_EQUAL(5.0, nVal, 1e-8);
- xErrorBarYProps->getPropertyValue("NegativeError") >>= nVal;
+ CPPUNIT_ASSERT(
+ xErrorBarYProps->getPropertyValue("NegativeError") >>= nVal);
CPPUNIT_ASSERT_DOUBLES_EQUAL(5.0, nVal, 1e-8);
- sal_Bool bVal;
- xErrorBarYProps->getPropertyValue("ShowPositiveError") >>= bVal;
- CPPUNIT_ASSERT_EQUAL(static_cast<bool>(bVal), true);
+ bool bVal;
+ CPPUNIT_ASSERT(
+ xErrorBarYProps->getPropertyValue("ShowPositiveError") >>= bVal);
+ CPPUNIT_ASSERT_EQUAL(bVal, true);
- xErrorBarYProps->getPropertyValue("ShowNegativeError") >>= bVal;
- CPPUNIT_ASSERT_EQUAL(static_cast<bool>(bVal), true);
+ CPPUNIT_ASSERT(
+ xErrorBarYProps->getPropertyValue("ShowNegativeError") >>= bVal);
+ CPPUNIT_ASSERT_EQUAL(bVal, true);
}
// test that x error bars are not imported