aboutsummaryrefslogtreecommitdiff
path: root/tests/sound-menu.cc
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-08-11 12:20:04 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-08-11 21:29:33 +0200
commit11ea05685763cd7a233b56e11cd231c7774f69e1 (patch)
treea5277807f5f415486fb0134dc994e32dd268734d /tests/sound-menu.cc
parenta3bc5a97496f357c47ddf069bd8c67af9143d2bf (diff)
downloadayatana-indicator-sound-11ea05685763cd7a233b56e11cd231c7774f69e1.tar.gz
ayatana-indicator-sound-11ea05685763cd7a233b56e11cd231c7774f69e1.tar.bz2
ayatana-indicator-sound-11ea05685763cd7a233b56e11cd231c7774f69e1.zip
Replace x-canonical attributes
Diffstat (limited to 'tests/sound-menu.cc')
-rw-r--r--tests/sound-menu.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/sound-menu.cc b/tests/sound-menu.cc
index d41c9de..587d47f 100644
--- a/tests/sound-menu.cc
+++ b/tests/sound-menu.cc
@@ -92,25 +92,25 @@ class SoundMenuTest : public ::testing::Test
/* Player display */
verify_item_attribute(section, 0, "action", g_variant_new_string("indicator.player-id"));
- verify_item_attribute(section, 0, "x-canonical-type", g_variant_new_string("org.ayatana.unity.media-player"));
+ verify_item_attribute(section, 0, "x-ayatana-type", g_variant_new_string("org.ayatana.unity.media-player"));
/* Player control */
- verify_item_attribute(section, 1, "x-canonical-type", g_variant_new_string("org.ayatana.unity.playback-item"));
- //verify_item_attribute(section, 1, "x-canonical-play-action", g_variant_new_string(""));
+ verify_item_attribute(section, 1, "x-ayatana-type", g_variant_new_string("org.ayatana.unity.playback-item"));
+ //verify_item_attribute(section, 1, "x-ayatana-play-action", g_variant_new_string(""));
if (!canPlay) {
- verify_item_attribute_is_not_set(section, 1, "x-canonical-play-action", G_VARIANT_TYPE_STRING);
+ verify_item_attribute_is_not_set(section, 1, "x-ayatana-play-action", G_VARIANT_TYPE_STRING);
} else {
- verify_item_attribute(section, 1, "x-canonical-play-action", g_variant_new_string("indicator.play.player-id"));
+ verify_item_attribute(section, 1, "x-ayatana-play-action", g_variant_new_string("indicator.play.player-id"));
}
if (!canNext) {
- verify_item_attribute_is_not_set(section, 1, "x-canonical-next-action", G_VARIANT_TYPE_STRING);
+ verify_item_attribute_is_not_set(section, 1, "x-ayatana-next-action", G_VARIANT_TYPE_STRING);
} else {
- verify_item_attribute(section, 1, "x-canonical-next-action", g_variant_new_string("indicator.next.player-id"));
+ verify_item_attribute(section, 1, "x-ayatana-next-action", g_variant_new_string("indicator.next.player-id"));
}
if (!canPrev) {
- verify_item_attribute_is_not_set(section, 1, "x-canonical-previous-action", G_VARIANT_TYPE_STRING);
+ verify_item_attribute_is_not_set(section, 1, "x-ayatana-previous-action", G_VARIANT_TYPE_STRING);
} else {
- verify_item_attribute(section, 1, "x-canonical-previous-action", g_variant_new_string("indicator.previous.player-id"));
+ verify_item_attribute(section, 1, "x-ayatana-previous-action", g_variant_new_string("indicator.previous.player-id"));
}
g_clear_object(&section);
@@ -164,13 +164,13 @@ TEST_F(SoundMenuTest, AddRemovePlayer) {
/* Player display */
verify_item_attribute(section, 0, "action", g_variant_new_string("indicator.player-id"));
- verify_item_attribute(section, 0, "x-canonical-type", g_variant_new_string("org.ayatana.unity.media-player"));
+ verify_item_attribute(section, 0, "x-ayatana-type", g_variant_new_string("org.ayatana.unity.media-player"));
/* Player control */
- verify_item_attribute(section, 1, "x-canonical-type", g_variant_new_string("org.ayatana.unity.playback-item"));
- verify_item_attribute(section, 1, "x-canonical-play-action", g_variant_new_string("indicator.play.player-id"));
- verify_item_attribute(section, 1, "x-canonical-next-action", g_variant_new_string("indicator.next.player-id"));
- verify_item_attribute(section, 1, "x-canonical-previous-action", g_variant_new_string("indicator.previous.player-id"));
+ verify_item_attribute(section, 1, "x-ayatana-type", g_variant_new_string("org.ayatana.unity.playback-item"));
+ verify_item_attribute(section, 1, "x-ayatana-play-action", g_variant_new_string("indicator.play.player-id"));
+ verify_item_attribute(section, 1, "x-ayatana-next-action", g_variant_new_string("indicator.next.player-id"));
+ verify_item_attribute(section, 1, "x-ayatana-previous-action", g_variant_new_string("indicator.previous.player-id"));
g_clear_object(&section);