Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/screen_changes_test.cpp
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Line(s) | 73 | { | |||
---|---|---|---|---|---|
150 | QCOMPARE(xdgO1->logicalSize(), geometries.at(0).size()); | 150 | QCOMPARE(xdgO1->logicalSize(), geometries.at(0).size()); | ||
151 | QScopedPointer<XdgOutput> xdgO2(xdgOutputManager->getXdgOutput(o2.data())); | 151 | QScopedPointer<XdgOutput> xdgO2(xdgOutputManager->getXdgOutput(o2.data())); | ||
152 | QSignalSpy xdgO2ChangedSpy(xdgO2.data(), &XdgOutput::changed); | 152 | QSignalSpy xdgO2ChangedSpy(xdgO2.data(), &XdgOutput::changed); | ||
153 | QVERIFY(xdgO2ChangedSpy.isValid()); | 153 | QVERIFY(xdgO2ChangedSpy.isValid()); | ||
154 | QVERIFY(xdgO2ChangedSpy.wait()); | 154 | QVERIFY(xdgO2ChangedSpy.wait()); | ||
155 | QCOMPARE(xdgO2->logicalPosition(), geometries.at(1).topLeft()); | 155 | QCOMPARE(xdgO2->logicalPosition(), geometries.at(1).topLeft()); | ||
156 | QCOMPARE(xdgO2->logicalSize(), geometries.at(1).size()); | 156 | QCOMPARE(xdgO2->logicalSize(), geometries.at(1).size()); | ||
157 | 157 | | |||
158 | QVERIFY(xdgO1->name().startsWith("Virtual-")); | ||||
159 | QVERIFY(xdgO1->name() != xdgO2->name()); | ||||
160 | QVERIFY(!xdgO1->description().isEmpty()); | ||||
161 | | ||||
158 | // now let's try to remove one output again | 162 | // now let's try to remove one output again | ||
159 | outputAnnouncedSpy.clear(); | 163 | outputAnnouncedSpy.clear(); | ||
160 | outputRemovedSpy.clear(); | 164 | outputRemovedSpy.clear(); | ||
161 | screensChangedSpy.clear(); | 165 | screensChangedSpy.clear(); | ||
162 | 166 | | |||
163 | QSignalSpy o1RemovedSpy(o1.data(), &Output::removed); | 167 | QSignalSpy o1RemovedSpy(o1.data(), &Output::removed); | ||
164 | QVERIFY(o1RemovedSpy.isValid()); | 168 | QVERIFY(o1RemovedSpy.isValid()); | ||
165 | QSignalSpy o2RemovedSpy(o2.data(), &Output::removed); | 169 | QSignalSpy o2RemovedSpy(o2.data(), &Output::removed); | ||
Show All 30 Lines |