@@ -461,6 +461,20 @@ private Q_SLOTS:
461 QCOMPARE(index == -1, !isRunning && !isPinned && !startWhenVisible);
461 QCOMPARE(index == -1, !isRunning && !isPinned && !startWhenVisible);
465+ // Check that the alerting-status is still false
466+ int index = launcherModel->findApplication("abs-icon");
467+ QCOMPARE(index >= 0, true);
468+ QVERIFY(launcherModel->get(index)->alerting() == false);
470+ // Call Alert() on "abs-icon"
471+ QDBusInterface interface("com.canonical.Unity.Launcher", "/com/canonical/Unity/Launcher/abs_2Dicon", "com.canonical.Unity.Launcher.Item");
472+ interface.call("Alert");
474+ // Check that the alerting-status is now true
475+ QVERIFY(launcherModel->get(index)->alerting() == true);
464 void testRefreshAfterDeletedDesktopFiles_data() {
478 void testRefreshAfterDeletedDesktopFiles_data() {
465 QTest::addColumn<bool>("deleted");
479 QTest::addColumn<bool>("deleted");
466 QTest::newRow("have .desktop files") << false;
480 QTest::newRow("have .desktop files") << false;