aboutsummaryrefslogtreecommitdiff
path: root/tests/indicator-test.cc
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-11-04 18:30:19 -0600
committerTed Gould <ted@gould.cx>2014-11-04 18:30:19 -0600
commit5d1c2bc58614939a64a5d023f3b86d59fd8fb2a8 (patch)
treedd912e0e033c4d0bf9ec7cca54d4470c912a1f20 /tests/indicator-test.cc
parent210837e348e2e154dcd28d2f170f8291a18b3c71 (diff)
downloadayatana-indicator-sound-5d1c2bc58614939a64a5d023f3b86d59fd8fb2a8.tar.gz
ayatana-indicator-sound-5d1c2bc58614939a64a5d023f3b86d59fd8fb2a8.tar.bz2
ayatana-indicator-sound-5d1c2bc58614939a64a5d023f3b86d59fd8fb2a8.zip
Dividing up the tests to make them look nice
Diffstat (limited to 'tests/indicator-test.cc')
-rw-r--r--tests/indicator-test.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/indicator-test.cc b/tests/indicator-test.cc
index 6bc16cb..fd2819e 100644
--- a/tests/indicator-test.cc
+++ b/tests/indicator-test.cc
@@ -33,14 +33,17 @@ protected:
};
-TEST_F(IndicatorTest, StartStop) {
+TEST_F(IndicatorTest, PhoneMenu) {
setMenu("/com/canonical/indicator/sound/phone");
EXPECT_MENU_ATTRIB({0}, "action", "indicator.root");
EXPECT_MENU_ATTRIB({0}, "x-canonical-type", "com.canonical.indicator.root");
expectMenuAttribute({0, 0, 0}, "action", "indicator.silent-mode");
+}
+TEST_F(IndicatorTest, DesktopMenu) {
setMenu("/com/canonical/indicator/sound/desktop");
+
EXPECT_MENU_ATTRIB({0}, "action", "indicator.root");
}