How to use running slideshow in unit test?

Thorsten Behrens thb at libreoffice.org
Thu May 14 21:28:55 UTC 2020


Hi Regina,

better late than never -

Regina Henschel wrote:
> xPresentation2->start();
> CPPUNIT_ASSERT(xPresentation2->isRunning());
> 
> But the assertion fails.
> 
Many slideshow activities happen timer-based, that also includes the
initial start.

I'd stick a Scheduler::ProcessEventsToIdle() after the start() call,
and see how far that gets you.

It _might_ turn out that in the end, a subsequent or uitest might be
more suitable to what you'd need here...

HTH,

-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1032 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20200514/90b15739/attachment.sig>


More information about the LibreOffice mailing list