aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/indicator-test.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/indicator-test.cc b/tests/indicator-test.cc
index 073e037..336cfdb 100644
--- a/tests/indicator-test.cc
+++ b/tests/indicator-test.cc
@@ -62,9 +62,12 @@ TEST_F(IndicatorTest, DesktopMenu) {
EXPECT_MENU_ATTRIB(std::vector<int>({0, 0, 0}), "action", "indicator.mute");
}
-TEST_F(IndicatorTest, SilentActions) {
+TEST_F(IndicatorTest, BaseActions) {
setActions("/com/canonical/indicator/sound");
+ ASSERT_ACTION_EXISTS("root");
+ ASSERT_ACTION_STATE_TYPE("root", G_VARIANT_TYPE("a{sv}"));
+
ASSERT_ACTION_EXISTS("scroll");
ASSERT_ACTION_EXISTS("silent-mode");
@@ -74,4 +77,10 @@ TEST_F(IndicatorTest, SilentActions) {
ASSERT_ACTION_EXISTS("mute");
ASSERT_ACTION_STATE_TYPE("mute", G_VARIANT_TYPE_BOOLEAN);
EXPECT_ACTION_STATE("mute", false);
+
+ ASSERT_ACTION_EXISTS("mic-volume");
+ ASSERT_ACTION_STATE_TYPE("mic-volume", G_VARIANT_TYPE_DOUBLE);
+
+ ASSERT_ACTION_EXISTS("volume");
+ ASSERT_ACTION_STATE_TYPE("volume", G_VARIANT_TYPE_DOUBLE);
}