[autotests/client] QSkip the WaylandFullscreenShellTest if _wl_fullscreenshell missing
Newer Weston renamed the interface to the unstable naming scheme. As KWayland does not support this interface yet, the tests are failing. This change skips the test if the Weston is too new and doesn't provide the expected interface any more.
This commit is contained in:
parent
a612cfa499
commit
a092de25b4
1 changed files with 16 additions and 2 deletions
|
@ -105,12 +105,19 @@ void TestWaylandFullscreenShell::testRegistry()
|
|||
QVERIFY(connectedSpy.wait());
|
||||
|
||||
KWayland::Client::Registry registry;
|
||||
QSignalSpy interfacesAnnouncedSpy(®istry, &KWayland::Client::Registry::interfaceAnnounced);
|
||||
QVERIFY(interfacesAnnouncedSpy.isValid());
|
||||
QSignalSpy announced(®istry, SIGNAL(fullscreenShellAnnounced(quint32,quint32)));
|
||||
registry.create(connection.display());
|
||||
QVERIFY(registry.isValid());
|
||||
registry.setup();
|
||||
wl_display_flush(connection.display());
|
||||
QVERIFY(announced.wait());
|
||||
QVERIFY(interfacesAnnouncedSpy.wait());
|
||||
|
||||
if (!registry.hasInterface(KWayland::Client::Registry::Interface::FullscreenShell)) {
|
||||
QSKIP("Weston does not have fullscreen shell support");
|
||||
}
|
||||
QCOMPARE(announced.count(), 1);
|
||||
|
||||
KWayland::Client::FullscreenShell fullscreenShell;
|
||||
QVERIFY(!fullscreenShell.isValid());
|
||||
|
@ -132,12 +139,19 @@ void TestWaylandFullscreenShell::testRegistryCreate()
|
|||
QVERIFY(connectedSpy.wait());
|
||||
|
||||
KWayland::Client::Registry registry;
|
||||
QSignalSpy interfacesAnnouncedSpy(®istry, &KWayland::Client::Registry::interfaceAnnounced);
|
||||
QVERIFY(interfacesAnnouncedSpy.isValid());
|
||||
QSignalSpy announced(®istry, SIGNAL(fullscreenShellAnnounced(quint32,quint32)));
|
||||
registry.create(connection.display());
|
||||
QVERIFY(registry.isValid());
|
||||
registry.setup();
|
||||
wl_display_flush(connection.display());
|
||||
QVERIFY(announced.wait());
|
||||
QVERIFY(interfacesAnnouncedSpy.wait());
|
||||
|
||||
if (!registry.hasInterface(KWayland::Client::Registry::Interface::FullscreenShell)) {
|
||||
QSKIP("Weston does not have fullscreen shell support");
|
||||
}
|
||||
QCOMPARE(announced.count(), 1);
|
||||
|
||||
KWayland::Client::FullscreenShell *fullscreenShell = registry.createFullscreenShell(announced.first().first().value<quint32>(), 1, ®istry);
|
||||
QVERIFY(fullscreenShell->isValid());
|
||||
|
|
Loading…
Reference in a new issue