Hi all,

The patch https://gerrit.libreoffice.org/c/core/+/209055 lacks a unit test. I've tried to make one in sd/qa/ui/func/func.cxx, but without success. There exist a command '.uno:Morphing'. However, this opens only the "Cross-fading" dialog. The dialog reads the last setting from officecfg, and I could set the needed values using ScopedConfigValue. However, I see no way to execute the dialog. It seem like I need a test in Python. And I need help with that.

The test needs to do:
Load document. I have a suitable .odp document with two shapes.
Select the two shapes on page 0, means a "Select all".
Open the "Cross-fading" dialog.
Set the parameters, "increments" to 1, "attributes" to true, or alternatively set the values in officecfg before opening the dialog. Execute dialog. That generates a group shape and erases the given marked shapes.
Get the second shape inside the group shape.
Verify that it has the correct fill color.

The .ui file for the dialog is core/sd/uiconfig/sdraw/ui/crossfadedialog.ui

If you can point me to a suitable Python example, I can try to write the test myself. But I'm on Windows and there tests in Python are problematic anyway.

Kind regards,
Regina

Reply via email to