on xenial help sign in
Sorted out another issue with alertViaCountAndCountVisible qmltest.
commitfaf26a9364316fc8bf2f760cad645d6eab5ddc31 authorMirco Müller <mirco.mueller@canonical.com> dateSat 25 Jul 2015, 15:48 (11 years ago) parent6d68c42
2 files changed+1−2
tests/mocks/Unity/Launcher/MockLauncherModel.cpp+1−1 tests/qmltests/Launcher/tst_Launcher.qml−1
tests/mocks/Unity/Launcher/MockLauncherModel.cpp+1−1
@@ -262,7 +262,7 @@ void MockLauncherModel::setCount(const QString &appId, int count)
262262 if (index >= 0) {
263263 m_list.at(index)->setCount(count);
264264 QModelIndex modelIndex = this->index(index);
265− Q_EMIT dataChanged(modelIndex, modelIndex, QVector<int>() << RoleCount);
265+ Q_EMIT dataChanged(modelIndex, modelIndex);
266266 }
267267}
268268
tests/qmltests/Launcher/tst_Launcher.qml−1
@@ -811,7 +811,6 @@ Item {
811811 LauncherModel.setAlerting(LauncherModel.get(1).appId, false)
812812 waitForWiggleToStop(appIcon1)
813813 LauncherModel.setCount(LauncherModel.get(1).appId, 4711)
814− LauncherModel.setCountVisible(LauncherModel.get(1).appId, 1)
815814 tryCompare(appIcon1, "wiggling", true, 1000, "appId #1 should not be still")
816815 LauncherModel.setAlerting(LauncherModel.get(1).appId, false)
817816 waitForWiggleToStop(appIcon1)