diff options
author | Ted Gould <ted@gould.cx> | 2014-11-24 20:50:05 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-11-24 20:50:05 -0600 |
commit | 1188fa25abc4b23650888f8745837df8549b73af (patch) | |
tree | a8c8277461d296054243a69920df1a4581050a61 /tests/indicator-test.cc | |
parent | 40a32cacb2520cced6ce75acd31efb4f4b519e96 (diff) | |
download | ayatana-indicator-sound-1188fa25abc4b23650888f8745837df8549b73af.tar.gz ayatana-indicator-sound-1188fa25abc4b23650888f8745837df8549b73af.tar.bz2 ayatana-indicator-sound-1188fa25abc4b23650888f8745837df8549b73af.zip |
Flesh out the menu tests
Diffstat (limited to 'tests/indicator-test.cc')
-rw-r--r-- | tests/indicator-test.cc | 13 |
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) { |