Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/maximize_test.cpp
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Line(s) | 159 | { | |||
---|---|---|---|---|---|
169 | QCOMPARE(shellSurface->size(), QSize(1280, 1024)); | 169 | QCOMPARE(shellSurface->size(), QSize(1280, 1024)); | ||
170 | 170 | | |||
171 | // now let's render in an incorrect size | 171 | // now let's render in an incorrect size | ||
172 | auto client = Test::renderAndWaitForShown(surface.data(), QSize(100, 50), Qt::blue); | 172 | auto client = Test::renderAndWaitForShown(surface.data(), QSize(100, 50), Qt::blue); | ||
173 | QVERIFY(client); | 173 | QVERIFY(client); | ||
174 | QCOMPARE(client->geometry(), QRect(0, 0, 100, 50)); | 174 | QCOMPARE(client->geometry(), QRect(0, 0, 100, 50)); | ||
175 | QEXPECT_FAIL("", "Should go out of maximzied", Continue); | 175 | QEXPECT_FAIL("", "Should go out of maximzied", Continue); | ||
176 | QCOMPARE(client->maximizeMode(), MaximizeMode::MaximizeRestore); | 176 | QCOMPARE(client->maximizeMode(), MaximizeMode::MaximizeRestore); | ||
177 | QVERIFY(client->shellSurface()->isMaximized()); | | |||
178 | } | 177 | } | ||
179 | 178 | | |||
180 | void TestMaximized::testBorderlessMaximizedWindow() | 179 | void TestMaximized::testBorderlessMaximizedWindow() | ||
181 | { | 180 | { | ||
182 | // test case verifies that borderless maximized window works | 181 | // test case verifies that borderless maximized window works | ||
183 | // see BUG 370982 | 182 | // see BUG 370982 | ||
184 | 183 | | |||
185 | // adjust config | 184 | // adjust config | ||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |