Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/internal_window.cpp
Show All 15 Lines | |||||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "platform.h" | 21 | #include "platform.h" | ||
22 | #include "cursor.h" | 22 | #include "cursor.h" | ||
23 | #include "effects.h" | 23 | #include "effects.h" | ||
24 | #include "internal_client.h" | ||||
24 | #include "shell_client.h" | 25 | #include "shell_client.h" | ||
25 | #include "screens.h" | 26 | #include "screens.h" | ||
26 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
27 | #include "workspace.h" | 28 | #include "workspace.h" | ||
28 | 29 | | |||
29 | #include <QPainter> | 30 | #include <QPainter> | ||
30 | #include <QRasterWindow> | 31 | #include <QRasterWindow> | ||
31 | 32 | | |||
▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | 217 | { | |||
222 | win.setGeometry(0, 0, 100, 100); | 223 | win.setGeometry(0, 0, 100, 100); | ||
223 | win.show(); | 224 | win.show(); | ||
224 | 225 | | |||
225 | QVERIFY(clientAddedSpy.wait()); | 226 | QVERIFY(clientAddedSpy.wait()); | ||
226 | QCOMPARE(clientAddedSpy.count(), 1); | 227 | QCOMPARE(clientAddedSpy.count(), 1); | ||
227 | QVERIFY(!workspace()->activeClient()); | 228 | QVERIFY(!workspace()->activeClient()); | ||
228 | ShellClient *c = clientAddedSpy.first().first().value<ShellClient*>(); | 229 | ShellClient *c = clientAddedSpy.first().first().value<ShellClient*>(); | ||
229 | QVERIFY(c->isInternal()); | 230 | QVERIFY(c->isInternal()); | ||
231 | QVERIFY(qobject_cast<InternalClient*>(c)); | ||||
230 | QCOMPARE(c->icon().name(), QStringLiteral("wayland")); | 232 | QCOMPARE(c->icon().name(), QStringLiteral("wayland")); | ||
231 | QVERIFY(!c->isDecorated()); | 233 | QVERIFY(!c->isDecorated()); | ||
232 | QCOMPARE(workspace()->findToplevel(&win), c); | 234 | QCOMPARE(workspace()->findToplevel(&win), c); | ||
233 | QCOMPARE(c->geometry(), QRect(0, 0, 100, 100)); | 235 | QCOMPARE(c->geometry(), QRect(0, 0, 100, 100)); | ||
234 | QVERIFY(c->isShown(false)); | 236 | QVERIFY(c->isShown(false)); | ||
235 | QVERIFY(workspace()->xStackingOrder().contains(c)); | 237 | QVERIFY(workspace()->xStackingOrder().contains(c)); | ||
236 | 238 | | |||
237 | QSignalSpy enterSpy(&win, &HelperWindow::entered); | 239 | QSignalSpy enterSpy(&win, &HelperWindow::entered); | ||
▲ Show 20 Lines • Show All 583 Lines • Show Last 20 Lines |