summaryrefslogtreecommitdiff
path: root/chart2/qa
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2017-03-15 17:50:29 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2017-03-15 19:37:59 +0000
commit4f786274be8f9b01b34ad0772bcf718d5259bdc0 (patch)
tree0ca2103a13ecf7acf8a7fff0efaf4c79a5d2d907 /chart2/qa
parent82981b94feeae5fb1fb72139ce87fbc22ef33601 (diff)
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@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'chart2/qa')
-rwxr-xr-xchart2/qa/extras/chart2dump/chart2dump.cxx12
1 files changed, 12 insertions, 0 deletions
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<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",