[Libreoffice-commits] core.git: chart2/qa
Tamás Zolnai
tamas.zolnai at collabora.com
Wed Mar 15 19:38:19 UTC 2017
chart2/qa/extras/chart2dump/chart2dump.cxx | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 4f786274be8f9b01b34ad0772bcf718d5259bdc0
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date: Wed Mar 15 17:50:29 2017 +0100
ChartDumpTest: Use local EPS for Mac only
On linux it was not a problem. On Windows there were some
random failures, but that might be fixed by using
Liberation Mono font.
Change-Id: Iae2684b302b3380c3a63b1fa80b1d0585454ed56
Reviewed-on: https://gerrit.libreoffice.org/35241
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/chart2/qa/extras/chart2dump/chart2dump.cxx b/chart2/qa/extras/chart2dump/chart2dump.cxx
index cd9f004..fc9e398 100755
--- a/chart2/qa/extras/chart2dump/chart2dump.cxx
+++ b/chart2/qa/extras/chart2dump/chart2dump.cxx
@@ -393,7 +393,11 @@ DECLARE_DUMP_TEST(ChartDataTest, Chart2DumpTest, false)
DECLARE_DUMP_TEST(LegendTest, Chart2DumpTest, false)
{
+#if defined(MACOSX)
const double fLocalEPS = 700.1;
+#else
+ const double fLocalEPS = INT_EPS;
+#endif
const std::vector<OUString> aTestFiles =
{
"legend_on_right_side.odp",
@@ -643,7 +647,11 @@ DECLARE_DUMP_TEST(AxisGeometryTest, Chart2DumpTest, false)
DECLARE_DUMP_TEST(AxisLabelTest, Chart2DumpTest, false)
{
+#if defined(MACOSX)
const double fLocalEPS = 250.1;
+#else
+ const double fLocalEPS = INT_EPS;
+#endif
const std::vector<OUString> aTestFiles =
{
"default_formated_axis.odp",
@@ -801,7 +809,11 @@ DECLARE_DUMP_TEST(ColumnBarChartTest, Chart2DumpTest, false)
DECLARE_DUMP_TEST(ChartWallTest, Chart2DumpTest, false)
{
+#if defined(MACOSX)
const double fLocalEPS = 350.1;
+#else
+ const double fLocalEPS = INT_EPS;
+#endif
const std::vector<OUString> aTestFiles =
{
"chartwall_auto_adjust_with_titles.ods",
More information about the Libreoffice-commits
mailing list