diff options
author | Ratchanan Srirattanamet <ratchanan@ubports.com> | 2023-01-17 10:52:54 +0000 |
---|---|---|
committer | Ratchanan Srirattanamet <ratchanan@ubports.com> | 2023-01-17 10:52:54 +0000 |
commit | 456cbf253801b2d7536d790a034c9b44d910a5a9 (patch) | |
tree | c0f3e97c445dba3f5150d91784a60e0a7f7d0427 /tests/integration/indicator-sound-test-base.cpp | |
parent | e9b738bf4e0efa26c2d2a3061919728dcaeea33e (diff) | |
download | ayatana-indicator-sound-456cbf253801b2d7536d790a034c9b44d910a5a9.tar.gz ayatana-indicator-sound-456cbf253801b2d7536d790a034c9b44d910a5a9.tar.bz2 ayatana-indicator-sound-456cbf253801b2d7536d790a034c9b44d910a5a9.zip |
src/, tests/: update references to renamed notification hints
More notification hints have been renamed. So update to follow it.
- x-canonical-private-synchronous -> x-lomiri-private-synchronous
- x-canonical-private-icon-only -> x-lomiri-private-icon-only
- x-canonical-truncation -> x-lomiri-truncation (which Lomiri has
compatibility with the former name, so keep in the mocked
capabilities)
Diffstat (limited to 'tests/integration/indicator-sound-test-base.cpp')
-rw-r--r-- | tests/integration/indicator-sound-test-base.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/indicator-sound-test-base.cpp b/tests/integration/indicator-sound-test-base.cpp index 3ecd856..c201e27 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', 'x-canonical-private-synchronous', 'x-canonical-append', 'x-canonical-private-icon-only', 'x-canonical-truncation', 'private-synchronous', 'append', 'private-icon-only', 'truncation']" + "ret = ['actions', 'body', 'body-markup', 'icon-static', 'image/svg+xml', 'x-lomiri-private-synchronous', 'x-canonical-append', 'x-lomiri-private-icon-only', 'x-lomiri-truncation', 'x-canonical-truncation', 'private-synchronous', 'append', 'private-icon-only', 'truncation']" ).waitForFinished(); int waitedTime = 0; @@ -649,12 +649,12 @@ void IndicatorSoundTestBase::checkVolumeNotification(double volume, QString cons 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-canonical-private-synchronous")); + 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-canonical-private-synchronous"]); + EXPECT_EQ(true, hints["x-lomiri-private-synchronous"]); } void IndicatorSoundTestBase::checkHighVolumeNotification(QVariantList call) |