Test: Remove QSKIP from tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut
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>
This commit is contained in:
parent
461a01c1df
commit
01a985ac5b
@ -3,6 +3,4 @@ TARGET = tst_qlineedit
|
||||
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
|
||||
|
@ -3635,9 +3635,6 @@ void tst_QLineEdit::taskQTBUG_7902_contextMenuCrash()
|
||||
|
||||
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);
|
||||
@ -3648,6 +3645,7 @@ void tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut()
|
||||
le.addAction(&action);
|
||||
|
||||
le.show();
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&le));
|
||||
QApplication::setActiveWindow(&le);
|
||||
QVERIFY(QTest::qWaitForWindowActive(&le));
|
||||
le.setFocus();
|
||||
|
Loading…
Reference in New Issue
Block a user