aboutsummaryrefslogtreecommitdiff
path: root/tests/gtest-menuitems.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gtest-menuitems.cpp')
-rw-r--r--tests/gtest-menuitems.cpp12
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;