Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hey,

finally I was able to finish my work on a chart2 test concept. I have
implemented an idea that renders the chart and then dumps the layout
data into an xml based on the information stored in the
XShape/XShapes. This allows us to easily add new test cases without
having to know anything about programming or chart2. All you need to
create a new test case is a bit of time.
For everyone interested in writing and extending chart tests please
have a look at: https://bugs.freedesktop.org/show_bug.cgi?id=47667

So here some more technical details for all who are interested in it:

The dumper code is in chart2/source/view/main/ChartView.cxx and takes
the drawing::XDrawPage and dumps the containing XShape/XShapes into
xml. The dumper can be easily extended and it would be nice if
everyone fixing a bug in chart2 could have a look at it and check if
this bug could have been prevented if the dumper would included some
more information.
BY enabling the debug output of the dumper you will get a list of
supported service names in the dump and can just add a method for this
service or for one interface of this service.

It might be that the same code is valuable for Draw/Impress too and we
can then think about extracting the dumper and moving it into test.


The test is not yet activated but is working already. So if you want
to play a bit with it just add it into Module_sc.mk. Feedback as
always highly appreciated. If there are no objections I plan to
activate the test in sc's subsequentcheck target at the end of the
week.

Regards,
Markus

P.S. For calc devs I will add a hidden export filter that exports the
same content to make debugging chart bugs easier.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.