on xenial help sign in
Bootstrap count tests
569a630Ted Gould
tests/plugins/Unity/Launcher/launcherbackendtest.cpp+16
@@ -66,6 +66,22 @@ private Q_SLOTS:
66
66
67 QCOMPARE(backend.icon(appId), expectedIcon);
67 QCOMPARE(backend.icon(appId), expectedIcon);
68 }
68 }
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+ }
69};
85};
70
86
71QTEST_GUILESS_MAIN(LauncherBackendTest)
87QTEST_GUILESS_MAIN(LauncherBackendTest)