diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-04-14 11:31:54 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-04-14 11:34:29 (GMT) |
commit | 4dae6bd829e1103d0e21ce9e509d758b5af0c2c0 (patch) | |
tree | 5c70b233785d0ea1421b3bb389580620c990f3ab /tests/auto/macgui | |
parent | 4a32242e57ac689224340077656b30894171cb08 (diff) | |
download | Qt-4dae6bd829e1103d0e21ce9e509d758b5af0c2c0.zip Qt-4dae6bd829e1103d0e21ce9e509d758b5af0c2c0.tar.gz Qt-4dae6bd829e1103d0e21ce9e509d758b5af0c2c0.tar.bz2 |
Autotest failure: dialogModality test fails on cocoa (macgui)
The reason is that it is using accessebility, which is not yet
implemented in Qt/Cocoa. This patch just removes the test, and
reimplements it using the native events test instead, which
is a better solution anyway.
Reviewed-by: msorvig
Diffstat (limited to 'tests/auto/macgui')
-rw-r--r-- | tests/auto/macgui/tst_macgui.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/auto/macgui/tst_macgui.cpp b/tests/auto/macgui/tst_macgui.cpp index 847ba4b..7f558a3 100644 --- a/tests/auto/macgui/tst_macgui.cpp +++ b/tests/auto/macgui/tst_macgui.cpp @@ -60,7 +60,6 @@ private slots: void dummy(); void splashScreenModality(); - void dialogModality(); void nonModalOrder(); void spinBoxArrowButtons(); @@ -157,32 +156,6 @@ void tst_MacGui::splashScreenModality() QVERIFY(QTestEventLoop::instance().timeout() == false); } - -/* - Test that a non-modal dialog created as a child of a modal dialog is - shown in front. -*/ -void tst_MacGui::dialogModality() -{ - QDialog d; - d.setModal(true); - d.show(); - - QProgressDialog progress(&d); - progress.setValue(2); - - InterfaceChildPair interface = wn.find(QAccessible::Name, "Cancel", &progress); - QVERIFY(interface.iface); - const int delay = 2000; - clickLater(interface, Qt::LeftButton, delay); - - connect(&progress, SIGNAL(canceled()), SLOT(exitLoopSlot())); - - const int timeout = 3; - QTestEventLoop::instance().enterLoop(timeout); - QVERIFY(QTestEventLoop::instance().timeout() == false); -} - class PrimaryWindowDialog : public QDialog { Q_OBJECT |