@@ -298,6 +298,22 @@ private Q_SLOTS:
298 QCOMPARE(launcherModel->rowCount(QModelIndex()), 1);
298 QCOMPARE(launcherModel->rowCount(QModelIndex()), 1);
301+ void testApplicationRunning() {
302+ launcherModel->pin("abs-icon");
303+ launcherModel->pin("no-icon");
305+ QCOMPARE(launcherModel->get(0)->running(), true);
306+ QCOMPARE(launcherModel->get(1)->running(), true);
308+ appManager->stopApplication("abs-icon");
309+ QCOMPARE(launcherModel->get(0)->running(), false);
310+ QCOMPARE(launcherModel->get(1)->running(), true);
312+ appManager->stopApplication("no-icon");
313+ QCOMPARE(launcherModel->get(0)->running(), false);
314+ QCOMPARE(launcherModel->get(1)->running(), false);
301 void testApplicationFocused() {
317 void testApplicationFocused() {
302 // all apps unfocused at beginning...
318 // all apps unfocused at beginning...
303 QCOMPARE(launcherModel->get(0)->focused(), false);
319 QCOMPARE(launcherModel->get(0)->focused(), false);