Run application main run loop in color/font dialog test
authorTeemu Katajisto <teemu.katajisto@digia.com>
Thu, 13 Sep 2012 06:24:09 +0000 (09:24 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 27 Sep 2012 21:51:30 +0000 (23:51 +0200)
commit7615b54ce8bd3ef08587abe9efde53195b9fb1fe
tree025d61e7bb77715629c5e2c98ba2ad3ac0e8959e
parente8ca2e008f52a818884b151dd93226813832ef94
Run application main run loop in color/font dialog test

In cocoa the timers are associated with main run loop but
the way font and color dialog tests are executed the modal
dialog run loop is only run in cocoa. This causes timers to
not to fire and test cases to hang.

Unfortunately this does not completely fix the test failure
because the QTest::keyClick is not working with cocoa
native dialog helpers and therefore the tests are marked
with QEXPECT_FAIL.

Task-number: QTBUG-24320
Task-number: QTBUG-24321

Change-Id: I88740a20ad2b794b6ca15e1b6455f436ffd39335
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
tests/auto/widgets/dialogs/qcolordialog/tst_qcolordialog.cpp
tests/auto/widgets/dialogs/qfontdialog/tst_qfontdialog.cpp