aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/indicator-sound-test-base.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-12-04 08:41:14 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-12-04 08:41:14 +0100
commit7a5e31fd1dfdfe2eb33b42c7e84b6293fa3a4895 (patch)
treec35fb032ebcfc90658c863164d55e7bc9a20a48a /tests/integration/indicator-sound-test-base.cpp
parent3e8aab9eaf85ec528d6a0465a162c017934b3b5d (diff)
parenta87ed3b20459a9f067718e0212306008f2dfdaef (diff)
downloadayatana-indicator-sound-7a5e31fd1dfdfe2eb33b42c7e84b6293fa3a4895.tar.gz
ayatana-indicator-sound-7a5e31fd1dfdfe2eb33b42c7e84b6293fa3a4895.tar.bz2
ayatana-indicator-sound-7a5e31fd1dfdfe2eb33b42c7e84b6293fa3a4895.zip
Merge branch 'tari01-pr/lomiri-notifications'
Attributes GH PR #98: https://github.com/AyatanaIndicators/ayatana-indicator-sound/pull/98
Diffstat (limited to 'tests/integration/indicator-sound-test-base.cpp')
-rw-r--r--tests/integration/indicator-sound-test-base.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/integration/indicator-sound-test-base.cpp b/tests/integration/indicator-sound-test-base.cpp
index eb4ee8c..bec21b4 100644
--- a/tests/integration/indicator-sound-test-base.cpp
+++ b/tests/integration/indicator-sound-test-base.cpp
@@ -72,7 +72,7 @@ void IndicatorSoundTestBase::SetUp()
"GetCapabilities",
"",
"as",
- "ret = ['actions', 'body', 'body-markup', 'icon-static', 'image/svg+xml', 'private-synchronous', 'append', 'private-icon-only', 'truncation']"
+ "ret = ['actions', 'body', 'body-markup', 'icon-static', 'image/svg+xml', 'x-lomiri-private-synchronous', 'x-lomiri-private-icon-only', 'x-lomiri-truncation', 'private-synchronous', 'append', 'private-icon-only', 'truncation']"
).waitForFinished();
int waitedTime = 0;
@@ -647,8 +647,14 @@ void IndicatorSoundTestBase::checkVolumeNotification(double volume, QString cons
QVariantMap hints;
ASSERT_TRUE(qDBusArgumentToMap(args.at(6), hints));
ASSERT_TRUE(hints.contains("value"));
+ ASSERT_TRUE (hints.contains ("x-lomiri-non-shaped-icon"));
+ ASSERT_TRUE (hints.contains ("x-lomiri-value-bar-tint"));
+ ASSERT_TRUE (hints.contains ("x-lomiri-private-synchronous"));
EXPECT_EQ(volume*100, hints["value"]);
+ EXPECT_EQ (true, hints["x-lomiri-non-shaped-icon"]);
+ EXPECT_EQ (isLoud, hints["x-lomiri-value-bar-tint"]);
+ EXPECT_EQ (true, hints["x-lomiri-private-synchronous"]);
}
void IndicatorSoundTestBase::checkHighVolumeNotification(QVariantList call)