Unittest: How to exit slideshow mode?

Miklos Vajna vmiklos at collabora.com
Mon Jul 28 07:40:44 UTC 2025


Hi Regina,

On Sun, Jul 27, 2025 at 11:22:50PM +0200, Regina Henschel <rb.henschel at t-online.de> wrote:
> So how to start and end a slideshow in a unit test? Or is it impossible?

In general, you could see what's the backtrace of a starting
presentation in the interactive desktop case and then see if you can
trigger the same codepath from cppunit, see here:

https://wiki.documentfoundation.org/Development/Cpp_Unit_Tests#Discovering_a_test_strategy

I don't know if the desktop slideshow's additional window is similar to
other dialogs which are auto-cancelled when cppunit tests are running.
If so, then yes, this would be tricky to test from cppunit.

Regards,

Miklos


More information about the LibreOffice mailing list