tst_QInputMethod check WindowActivation capability instead of platform
Task-number: QTBUG-66849 Change-Id: I72a8751f1fc0df7ff5a371c854cb975b3cee8fd2 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
d0349e17ac
commit
17b65edad1
@ -186,8 +186,8 @@ void tst_qinputmethod::cursorRectangle()
|
||||
{
|
||||
QCOMPARE(qApp->inputMethod()->cursorRectangle(), QRectF());
|
||||
|
||||
if (!QGuiApplication::platformName().compare(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||
QSKIP("Wayland: This fails. Figure out why.");
|
||||
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||
QSKIP("QWindow::requestActivate() is not supported.");
|
||||
|
||||
DummyWindow window;
|
||||
window.show();
|
||||
@ -284,8 +284,8 @@ void tst_qinputmethod::inputDirection()
|
||||
|
||||
void tst_qinputmethod::inputMethodAccepted()
|
||||
{
|
||||
if (!QGuiApplication::platformName().compare(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||
QSKIP("Wayland: This fails. Figure out why.");
|
||||
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||
QSKIP("QWindow::requestActivate() is not supported.");
|
||||
|
||||
if (!QGuiApplication::platformName().compare(QLatin1String("minimal"), Qt::CaseInsensitive)
|
||||
|| !QGuiApplication::platformName().compare(QLatin1String("offscreen"), Qt::CaseInsensitive)) {
|
||||
|
Loading…
Reference in New Issue
Block a user