@@ -186,6 +186,7 @@ private Q_SLOTS:
186 QCOMPARE(spy.count() > 0, true);
186 QCOMPARE(spy.count() > 0, true);
187 QCOMPARE(spy.at(0).at(2).value<QVector<int>>().first(), (int)LauncherModelInterface::RolePinned);
187 QCOMPARE(spy.at(0).at(2).value<QVector<int>>().first(), (int)LauncherModelInterface::RolePinned);
189+ // App should be pinned now
189 spy.clear();
190 spy.clear();
190 launcherModel->requestRemove(launcherModel->get(0)->appId());
191 launcherModel->requestRemove(launcherModel->get(0)->appId());
191 QCOMPARE(launcherModel->get(0)->pinned(), false);
192 QCOMPARE(launcherModel->get(0)->pinned(), false);
@@ -193,12 +194,12 @@ private Q_SLOTS:
193 QCOMPARE(spy.count(), 1);
194 QCOMPARE(spy.count(), 1);
194 QCOMPARE(spy.at(0).at(2).value<QVector<int>>().first(), (int)LauncherModelInterface::RolePinned);
195 QCOMPARE(spy.at(0).at(2).value<QVector<int>>().first(), (int)LauncherModelInterface::RolePinned);
197+ // Now that the app is unpinned, nothing should change, but the signal shouldn't be emitted
196 spy.clear();
198 spy.clear();
197 launcherModel->requestRemove(launcherModel->get(0)->appId());
199 launcherModel->requestRemove(launcherModel->get(0)->appId());
198 QCOMPARE(launcherModel->get(0)->pinned(), false);
200 QCOMPARE(launcherModel->get(0)->pinned(), false);
199 QCOMPARE(launcherModel->get(1)->pinned(), false);
201 QCOMPARE(launcherModel->get(1)->pinned(), false);
200− QCOMPARE(spy.count(), 1);
202+ QCOMPARE(spy.count(), 0);
201− QCOMPARE(spy.at(0).at(2).value<QVector<int>>().first(), (int)LauncherModelInterface::RolePinned);
204 void testRemove_data() {
205 void testRemove_data() {