Hi Regina, On Mon, Feb 25, 2019 at 01:13:00AM +0100, Regina Henschel <rb.henschel@xxxxxxxxxxx> wrote: > I have tried to do it the same as in SdImportTest::testTdf93124 in > import-tests.cxx in sd/qa/unit. But I only get a bitmap of the page without > the shape. Asserting pixel data in bitmap is really the last resort. :-) If possible, it's much better to do something vector-based. Either export the shape or page into a metafile: sw/qa/extras/layout/layout.cxx:2349 or you can also do something similar to export it to SVG. Can you check if getting the document preview + asserting metafile content would allow you to test your changes? I think this approach is good if your code change affects what VCL methods are used. (If your code change affects what is stored in the document model, then it's better to assert the document model.) Regards, Miklos
Attachment:
signature.asc
Description: Digital signature
_______________________________________________ LibreOffice mailing list LibreOffice@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/libreoffice