on xenial help sign in
Bootstrap count tests
commit569a6304c4f11a34709812f79656190f4e2d3406 authorTed Gould <ted@gould.cx> dateSat 12 Apr 2014, 08:06 (13 years ago) parente05b395
1 file changed+16
tests/plugins/Unity/Launcher/launcherbackendtest.cpp+16
tests/plugins/Unity/Launcher/launcherbackendtest.cpp+16
@@ -66,6 +66,22 @@ private Q_SLOTS:
6666
6767 QCOMPARE(backend.icon(appId), expectedIcon);
6868 }
69+
70+ void testCount_data() {
71+ QTest::addColumn<QString>("appId");
72+ QTest::addColumn<int>("expectedCount");
73+
74+ QTest::newRow("Bootstrap") << "rel-icon" << -1;
75+ }
76+
77+ void testCount() {
78+ QFETCH(QString, appId);
79+ QFETCH(int, expectedCount);
80+
81+ LauncherBackend backend;
82+
83+ QCOMPARE(backend.count(appId), expectedCount);
84+ }
6985};
7086
7187QTEST_GUILESS_MAIN(LauncherBackendTest)