@@ -368,6 +368,8 @@ private Q_SLOTS:
370 void testCountEmblems() {
370 void testCountEmblems() {
371+ QSignalSpy spy(launcherModel, SIGNAL(dataChanged(QModelIndex,QModelIndex,QVector<int>)));
371 // Call GetAll on abs-icon
373 // Call GetAll on abs-icon
372 QDBusInterface interface("com.canonical.Unity.Launcher", "/com/canonical/Unity/Launcher/abs_2Dicon", "org.freedesktop.DBus.Properties");
374 QDBusInterface interface("com.canonical.Unity.Launcher", "/com/canonical/Unity/Launcher/abs_2Dicon", "org.freedesktop.DBus.Properties");
373 QDBusReply<QVariantMap> reply = interface.call("GetAll");
375 QDBusReply<QVariantMap> reply = interface.call("GetAll");
@@ -398,9 +400,11 @@ private Q_SLOTS:
398 QCOMPARE(index >= 0, true);
400 QCOMPARE(index >= 0, true);
400 // And make sure values have changed there as well
402 // And make sure values have changed there as well
401 QCOMPARE(launcherModel->get(index)->countVisible(), true);
404 QCOMPARE(launcherModel->get(index)->countVisible(), true);
402 QCOMPARE(launcherModel->get(index)->count(), 55);
405 QCOMPARE(launcherModel->get(index)->count(), 55);
403 QVERIFY(launcherModel->get(index)->alerting() == true);
406 QVERIFY(launcherModel->get(index)->alerting() == true);
407+ QCOMPARE(spy.at(0).at(2).value<QVector<int>>().first(), (int)LauncherModelInterface::RoleAlerting);
406 void testCountEmblemAddsRemovesItem_data() {
410 void testCountEmblemAddsRemovesItem_data() {