From 7ecd6e0f9364c72e25ce6c3263229f3e34fa9296 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 24 Nov 2014 11:27:23 -0600 Subject: Filling out the tests some --- tests/indicator-test.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests/indicator-test.cc') 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({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); } -- cgit v1.2.3