diff options
author | Ted Gould <ted@gould.cx> | 2014-11-24 11:27:23 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-11-24 11:27:23 -0600 |
commit | 7ecd6e0f9364c72e25ce6c3263229f3e34fa9296 (patch) | |
tree | dfd8abffe8f781d6c36dc214dcf9d29e9ef88ff5 /tests/indicator-test.cc | |
parent | 01de4ffbc6f8cf2c5bc58d41f57eac01a91d89a9 (diff) | |
download | ayatana-indicator-sound-7ecd6e0f9364c72e25ce6c3263229f3e34fa9296.tar.gz ayatana-indicator-sound-7ecd6e0f9364c72e25ce6c3263229f3e34fa9296.tar.bz2 ayatana-indicator-sound-7ecd6e0f9364c72e25ce6c3263229f3e34fa9296.zip |
Filling out the tests some
Diffstat (limited to 'tests/indicator-test.cc')
-rw-r--r-- | tests/indicator-test.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/indicator-test.cc b/tests/indicator-test.cc index 59daa35..9e54c46 100644 --- a/tests/indicator-test.cc +++ b/tests/indicator-test.cc @@ -58,16 +58,20 @@ TEST_F(IndicatorTest, DesktopMenu) { setMenu("/com/canonical/indicator/sound/desktop"); EXPECT_MENU_ATTRIB({0}, "action", "indicator.root"); + + EXPECT_MENU_ATTRIB(std::vector<int>({0, 0, 0}), "action", "indicator.mute"); } TEST_F(IndicatorTest, SilentActions) { setActions("/com/canonical/indicator/sound"); - EXPECT_ACTION_EXISTS("scroll"); + ASSERT_ACTION_EXISTS("scroll"); - EXPECT_ACTION_EXISTS("silent-mode"); + ASSERT_ACTION_EXISTS("silent-mode"); + ASSERT_ACTION_STATE_TYPE("silent-mode", G_VARIANT_TYPE_BOOLEAN); EXPECT_ACTION_STATE("silent-mode", false); - EXPECT_ACTION_EXISTS("mute"); + ASSERT_ACTION_EXISTS("mute"); + ASSERT_ACTION_STATE_TYPE("mute", G_VARIANT_TYPE_BOOLEAN); EXPECT_ACTION_STATE("mute", false); } |