From 4f786274be8f9b01b34ad0772bcf718d5259bdc0 Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Wed, 15 Mar 2017 17:50:29 +0100 Subject: ChartDumpTest: Use local EPS for Mac only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tamás Zolnai --- chart2/qa/extras/chart2dump/chart2dump.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'chart2/qa') diff --git a/chart2/qa/extras/chart2dump/chart2dump.cxx b/chart2/qa/extras/chart2dump/chart2dump.cxx index cd9f004fa66d..fc9e3983489f 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 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 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 aTestFiles = { "chartwall_auto_adjust_with_titles.ods", -- cgit