aboutsummaryrefslogtreecommitdiff
path: root/tests/gtest-menuitems.cpp
blob: 17356fb1bfba874263531472866defa5a13083fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#include <gtk/gtk.h>
#include <gtest/gtest.h>
#include "idocalendarmenuitem.h"

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;
}