aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/indicator-test.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/indicator-test.cc b/tests/indicator-test.cc
index 336cfdb..a21209c 100644
--- a/tests/indicator-test.cc
+++ b/tests/indicator-test.cc
@@ -50,16 +50,29 @@ TEST_F(IndicatorTest, PhoneMenu) {
EXPECT_MENU_ATTRIB({0}, "action", "indicator.root");
EXPECT_MENU_ATTRIB({0}, "x-canonical-type", "com.canonical.indicator.root");
+ EXPECT_MENU_ATTRIB({0}, "x-canonical-scroll-action", "indicator.scroll");
+ EXPECT_MENU_ATTRIB({0}, "x-canonical-secondary-action", "indicator.mute");
EXPECT_MENU_ATTRIB(std::vector<int>({0, 0, 0}), "action", "indicator.silent-mode");
+ EXPECT_MENU_ATTRIB(std::vector<int>({0, 0, 0}), "label", "Silent Mode");
+
+ EXPECT_MENU_ATTRIB(std::vector<int>({0, 2}), "action", "indicator.phone-settings");
+ EXPECT_MENU_ATTRIB(std::vector<int>({0, 2}), "label", "Sound Settingsā€¦");
}
TEST_F(IndicatorTest, DesktopMenu) {
setMenu("/com/canonical/indicator/sound/desktop");
EXPECT_MENU_ATTRIB({0}, "action", "indicator.root");
+ EXPECT_MENU_ATTRIB({0}, "x-canonical-type", "com.canonical.indicator.root");
+ EXPECT_MENU_ATTRIB({0}, "x-canonical-scroll-action", "indicator.scroll");
+ EXPECT_MENU_ATTRIB({0}, "x-canonical-secondary-action", "indicator.mute");
EXPECT_MENU_ATTRIB(std::vector<int>({0, 0, 0}), "action", "indicator.mute");
+ EXPECT_MENU_ATTRIB(std::vector<int>({0, 0, 0}), "label", "Mute");
+
+ EXPECT_MENU_ATTRIB(std::vector<int>({0, 2}), "action", "indicator.desktop-settings");
+ EXPECT_MENU_ATTRIB(std::vector<int>({0, 2}), "label", "Sound Settingsā€¦");
}
TEST_F(IndicatorTest, BaseActions) {