on xenial help sign in
test if the alert is properly cleared on focus
commitaa78380b8141b3d77281008202e86dd34ab7fe6c authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 18 May 2016, 14:25 (10 years ago) parent69bef11
1 file changed+8
tests/plugins/Unity/Launcher/launchermodeltest.cpp+8
tests/plugins/Unity/Launcher/launchermodeltest.cpp+8
@@ -490,6 +490,10 @@ private Q_SLOTS:
490490
491491 // Finally check, that the change to "count" implicitly also set the alerting-state to true
492492 QVERIFY(launcherModel->get(index)->alerting() == true);
493+
494+ // Focus the app, make sure the alert gets cleared
495+ appManager->focusApplication("abs-icon");
496+ QVERIFY(launcherModel->get(index)->alerting() == false);
493497 }
494498
495499 void testCountEmblemAddsRemovesItem_data() {
@@ -561,6 +565,10 @@ private Q_SLOTS:
561565
562566 // Check that the alerting-status is now true
563567 QVERIFY(launcherModel->get(index)->alerting() == true);
568+
569+ // Focus the app, make sure the alert gets cleared
570+ appManager->focusApplication("abs-icon");
571+ QVERIFY(launcherModel->get(index)->alerting() == false);
564572 }
565573
566574 void testRefreshAfterDeletedDesktopFiles_data() {