diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-11-06 22:45:17 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-11-06 22:45:17 -0600 |
commit | 8b984ae8ec050b9f33b92abb1655e774f3025e95 (patch) | |
tree | 2d7de0a58726843233a9f05091f7f4279ad2bc6a | |
parent | 38965ac92f5a8e8b94263a8083716f5be4fff272 (diff) | |
download | ayatana-ido-8b984ae8ec050b9f33b92abb1655e774f3025e95.tar.gz ayatana-ido-8b984ae8ec050b9f33b92abb1655e774f3025e95.tar.bz2 ayatana-ido-8b984ae8ec050b9f33b92abb1655e774f3025e95.zip |
add tests for ido_entry_menu_item_get_entry, bringing package line coverage up to 55.5%
-rw-r--r-- | tests/gtest-menuitems.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/gtest-menuitems.cpp b/tests/gtest-menuitems.cpp index ff95148..3942bfc 100644 --- a/tests/gtest-menuitems.cpp +++ b/tests/gtest-menuitems.cpp @@ -79,12 +79,16 @@ TEST_F(TestMenuitems, BuildCalendar) { return; } -TEST_F(TestMenuitems, BuildEntry) { +TEST_F(TestMenuitems, BuildEntry) +{ GtkWidget * entry = ido_entry_menu_item_new(); + EXPECT_TRUE (entry != NULL); + EXPECT_TRUE (IDO_IS_ENTRY_MENU_ITEM(entry)); + EXPECT_TRUE (GTK_IS_MENU_ITEM(entry)); - EXPECT_TRUE(entry != NULL); - EXPECT_TRUE(IDO_IS_ENTRY_MENU_ITEM(entry)); - EXPECT_TRUE(GTK_IS_MENU_ITEM(entry)); + GtkWidget * w = ido_entry_menu_item_get_entry (IDO_ENTRY_MENU_ITEM(entry)); + ASSERT_TRUE (w != NULL); + ASSERT_TRUE (GTK_IS_ENTRY (w)); PutInMenu (entry); return; |