diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-01-29 16:26:25 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-01-29 16:26:25 -0600 |
commit | 131f7512975e3e0e1363cb787834abee5b79b4e5 (patch) | |
tree | bf52d471b4ec2f1b5fc667f6a217ae676e8c0599 /tests | |
parent | 6b2c01ed6063bd7fd12e192668b738a075dc3a24 (diff) | |
download | ayatana-indicator-datetime-131f7512975e3e0e1363cb787834abee5b79b4e5.tar.gz ayatana-indicator-datetime-131f7512975e3e0e1363cb787834abee5b79b4e5.tar.bz2 ayatana-indicator-datetime-131f7512975e3e0e1363cb787834abee5b79b4e5.zip |
fix disabled 'Add Event…' menuitem issue reported in testing by seb128; add a test for this regression
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-menus.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-menus.cpp b/tests/test-menus.cpp index 27248ad..e9dd7df 100644 --- a/tests/test-menus.cpp +++ b/tests/test-menus.cpp @@ -182,6 +182,14 @@ protected: section = g_menu_model_get_item_link(submenu, Menu::Appointments, G_MENU_LINK_SECTION); int expected_n = appointments_expected ? 1 : 0; EXPECT_EQ(expected_n, g_menu_model_get_n_items(section)); + if (appointments_expected) + { + gchar* action = nullptr; + EXPECT_TRUE(g_menu_model_get_item_attribute(section, 0, G_MENU_ATTRIBUTE_ACTION, "s", &action)); + EXPECT_STREQ("indicator.activate-planner", action); + EXPECT_TRUE(g_action_group_has_action(m_actions->action_group(), "activate-planner")); + g_free(action); + } g_clear_object(§ion); // try adding a few appointments and see if the menu updates itself |