• Michael Stahl's avatar
    qadevOOo: fix race in the ScAccessiblePreviewTable event test · d6e3ced4
    Michael Stahl yazdı
    XAccessibleEventBroadcaster::addAccessibleEventListener test calls the
    fireEvent() and the problem is that the event is triggered not on the
    print preview itself, but some toolbar button.  This then causes an
    accessible event to be broadcast from the print preview too, but only
    after doAccessibleAction() returns, some time later from VCL main-loop.
    
    If the test checks the flag in the listener before the main thread sends
    the event, the test fails; try to fix that with
    XToolkit::processEventsToIdle().
    
    (cherry picked from commit 1d87c245)
    
    qadevOOo: sadly XToolkit::processEventsToIdle doesn't fix...
    
    ... the ScAccessiblePreviewTable test, somehow the event still doesn't
    fire in time, let's add an arbitrary sleep too.
    
    (cherry picked from commit c94cf0cf)
    
    Change-Id: Ia52bdf99cdc349ffb0a03536fba271b792caae0f
    Reviewed-on: https://gerrit.libreoffice.org/20018Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
    (cherry picked from commit e3ee6df3)
    d6e3ced4
Adı
Son kayıt (commit)
Son güncelleme
..
objdsc Loading commit data...
qa Loading commit data...
runner Loading commit data...
testdocs Loading commit data...
tests/java Loading commit data...
Jar_OOoRunner.mk Loading commit data...
JunitTest_qadevOOo_unoapi.mk Loading commit data...
Makefile Loading commit data...
Module_qadevOOo.mk Loading commit data...
README Loading commit data...