summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/dialogs/qcolordialog/tst_qcolordialog.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2013-09-02 09:30:26 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-02 13:07:35 +0200
commit8fc97fdfc76fc62e1faa23f8b768d1ec303329d4 (patch)
tree3991bf746691a6c33615718dd05f6e23b9795ec6 /tests/auto/widgets/dialogs/qcolordialog/tst_qcolordialog.cpp
parent585758389c64e556ef4808308dee27e19241581e (diff)
Revert Mac event loop changes.
"Make QGuiApplication::exec() run within NSApplicationMain()" "Make Qt process native and timer events on Cocoa applications" "Cocoa: Fix QFontDialog, QColorDialog auto-tests" This reverts commits 1e14762b8d79118540bd09a84dd3e48f4f5e113e e4b2a0b4bab2a17a65fedafe9bae50af1fe019f6 df7944e7d7dd8b2bbccbd639eff0ab09745d6cc3 Change-Id: I80b65b5ee0297b090f807bd420664233dfc44f7b Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/widgets/dialogs/qcolordialog/tst_qcolordialog.cpp')
-rw-r--r--tests/auto/widgets/dialogs/qcolordialog/tst_qcolordialog.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/auto/widgets/dialogs/qcolordialog/tst_qcolordialog.cpp b/tests/auto/widgets/dialogs/qcolordialog/tst_qcolordialog.cpp
index 06491f96ab..d83e4729ef 100644
--- a/tests/auto/widgets/dialogs/qcolordialog/tst_qcolordialog.cpp
+++ b/tests/auto/widgets/dialogs/qcolordialog/tst_qcolordialog.cpp
@@ -144,10 +144,13 @@ void tst_QColorDialog::postKeyReturn() {
void tst_QColorDialog::testGetRgba()
{
- QColorDialog cd;
- cd.show();
- QTimer::singleShot(0, this, SLOT(postKeyReturn()));
- QTRY_COMPARE(cd.result(), int(QDialog::Accepted));
+#ifdef Q_OS_MAC
+ QEXPECT_FAIL("", "Sending QTest::keyClick to OSX color dialog helper fails, see QTBUG-24320", Continue);
+#endif
+ bool ok = false;
+ QTimer::singleShot(500, this, SLOT(postKeyReturn()));
+ QColorDialog::getRgba(0xffffffff, &ok);
+ QVERIFY(ok);
}
void tst_QColorDialog::defaultOkButton()