aboutsummaryrefslogtreecommitdiff
path: root/tests/gtest-menuitems.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-04-25 14:12:59 -0500
committerTed Gould <ted@gould.cx>2012-04-25 14:12:59 -0500
commit7db7f0e734e5c4d7dbc46fb415b8c60c3c570f8e (patch)
tree3fcb97a44cae40ea4d47851e641616a3acbcbf5e /tests/gtest-menuitems.cpp
parent274e47788ea7e1d7cd453598715233eb99a75292 (diff)
downloadayatana-ido-7db7f0e734e5c4d7dbc46fb415b8c60c3c570f8e.tar.gz
ayatana-ido-7db7f0e734e5c4d7dbc46fb415b8c60c3c570f8e.tar.bz2
ayatana-ido-7db7f0e734e5c4d7dbc46fb415b8c60c3c570f8e.zip
Now we're allocating a calendar
Diffstat (limited to 'tests/gtest-menuitems.cpp')
-rw-r--r--tests/gtest-menuitems.cpp26
1 files changed, 22 insertions, 4 deletions
diff --git a/tests/gtest-menuitems.cpp b/tests/gtest-menuitems.cpp
index cac28c4..17356fb 100644
--- a/tests/gtest-menuitems.cpp
+++ b/tests/gtest-menuitems.cpp
@@ -1,8 +1,26 @@
-#include <glib-object.h>
+#include <gtk/gtk.h>
#include <gtest/gtest.h>
+#include "idocalendarmenuitem.h"
-TEST(StartTesting, DummyTest) {
- g_type_init();
- EXPECT_TRUE(true);
+class TestMenuitems : public ::testing::Test
+{
+public:
+ TestMenuitems()
+ {
+ g_type_init();
+ return;
+ }
+};
+
+TEST_F(TestMenuitems, BuildCalendar) {
+ GtkWidget * cal = ido_calendar_menu_item_new();
+
+ EXPECT_TRUE(cal != NULL);
+ EXPECT_TRUE(IDO_IS_CALENDAR_MENU_ITEM(cal));
+ EXPECT_TRUE(GTK_IS_MENU_ITEM(cal));
+
+ g_object_ref_sink(cal);
+ g_object_unref(cal);
+ return;
}