How to open two documents at same time in a unit test
Mike Kaganski
mikekaganski at hotmail.com
Sun Jul 13 18:14:01 UTC 2025
On 7/13/2025 11:04 PM, Regina Henschel wrote:
> for a unit test for https://gerrit.libreoffice.org/c/core/+/187802 I
> need to have the source and the target document open at the same time.
> How can I do that in a unit test?
UnoApiTest has mxComponent2.
You may assign to it using something like `mxComponent2 =
loadFromDesktop(...)`. There are some samples of use of `mxComponent2`in
sc and sw.
Hope this helps.
--
Best regards,
Mike Kaganski
More information about the LibreOffice
mailing list