aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-11-24 16:55:50 -0600
committerTed Gould <ted@gould.cx>2014-11-24 16:55:50 -0600
commit40a32cacb2520cced6ce75acd31efb4f4b519e96 (patch)
tree7618e7cc9455d2ef0af1f176d3c6f541ed0886b0
parentb8a464bcc19809a4d60b444e0280e550912fc59c (diff)
downloadayatana-indicator-sound-40a32cacb2520cced6ce75acd31efb4f4b519e96.tar.gz
ayatana-indicator-sound-40a32cacb2520cced6ce75acd31efb4f4b519e96.tar.bz2
ayatana-indicator-sound-40a32cacb2520cced6ce75acd31efb4f4b519e96.zip
Fleshing out all the actions
-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);
}