The test is passing on Ubuntu 11.10.
Adding qWaitForWindowExposed after the line edit show() call to ensure
the line edit is actually shown on the screen.
Task-number: QTBUG-24518
Change-Id: I2af65bef76d171b36032120738dfbd7cfff51d7f
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
QT += gui-private core-private widgets widgets-private testlib
SOURCES += tst_qlineedit.cpp
-# QTBUG-24518 - unstable test
-linux-*:system(". /etc/lsb-release && [ $DISTRIB_CODENAME = oneiric ]"):DEFINES+=UBUNTU_ONEIRIC
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
void tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut()
{
-#if defined(UBUNTU_ONEIRIC) && defined(__x86_64__)
- QSKIP("QTBUG-24518 - Unstable test for Ubuntu 11.10");
-#endif
//ReadOnly QLineEdit should not intercept shortcut.
QLineEdit le;
le.setReadOnly(true);
le.addAction(&action);
le.show();
+ QVERIFY(QTest::qWaitForWindowExposed(&le));
QApplication::setActiveWindow(&le);
QVERIFY(QTest::qWaitForWindowActive(&le));
le.setFocus();