From 4b8cb3e3b9c597108697f46bcc93045b06cc0633 Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Fri, 24 Feb 2017 15:43:54 +0100 Subject: ChartDumpTest: Add a minimal test showing text size issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iea0f7f6cfaee546c3478b936053659b3ecd27e6c Reviewed-on: https://gerrit.libreoffice.org/34617 Tested-by: Jenkins Reviewed-by: Tamás Zolnai --- chart2/qa/extras/chart2dump/chart2dump.cxx | 3 +- .../extras/chart2dump/data/minimal_legend_test.odp | Bin 0 -> 18253 bytes .../reference/legendtest/minimal_legend_test.txt | 32 +++++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100755 chart2/qa/extras/chart2dump/data/minimal_legend_test.odp create mode 100755 chart2/qa/extras/chart2dump/reference/legendtest/minimal_legend_test.txt (limited to 'chart2/qa') diff --git a/chart2/qa/extras/chart2dump/chart2dump.cxx b/chart2/qa/extras/chart2dump/chart2dump.cxx index 99515defe227..bd25d20f97c9 100755 --- a/chart2/qa/extras/chart2dump/chart2dump.cxx +++ b/chart2/qa/extras/chart2dump/chart2dump.cxx @@ -403,7 +403,8 @@ DECLARE_DUMP_TEST(LegendTest, Chart2DumpTest, false) "legend_on_top.odp", "many_legend_entries.odp", "custom_legend_position.odp", - "multiple_categories.odp" + "multiple_categories.odp", + "minimal_legend_test.odp" }; for (const OUString& aTestFile : aTestFiles) diff --git a/chart2/qa/extras/chart2dump/data/minimal_legend_test.odp b/chart2/qa/extras/chart2dump/data/minimal_legend_test.odp new file mode 100755 index 000000000000..63911f119c90 Binary files /dev/null and b/chart2/qa/extras/chart2dump/data/minimal_legend_test.odp differ diff --git a/chart2/qa/extras/chart2dump/reference/legendtest/minimal_legend_test.txt b/chart2/qa/extras/chart2dump/reference/legendtest/minimal_legend_test.txt new file mode 100755 index 000000000000..00f666c05d50 --- /dev/null +++ b/chart2/qa/extras/chart2dump/reference/legendtest/minimal_legend_test.txt @@ -0,0 +1,32 @@ +// aLegendPosition.X +15382 +// aLegendPosition.Y +4235 +// aLegendSize.Width +2404 +// aLegendSize.Height +545 +// nLegendEntryCount +1 +// aLegendEntryPosition.X +15498 +// aLegendEntryPosition.Y +4402 +// aLegendEntrySize.Height +211 +// aLegendEntrySize.Width +800 +// aLegendEntryTransformation +801;0;15498;0;212;4402;0;0;1 +// xLegendEntryContainer->getCount() +3 +// sEntryGeomShapeType +com.sun.star.drawing.LineShape +// static_cast(aEntryGeomColor) +7512015 +// sEntryGeomShapeType +com.sun.star.drawing.PolyPolygonShape +// static_cast(aEntryGeomColor) +17798 +// xLegendEntryText->getString() +Inkjet -- cgit