aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-11-06 21:04:57 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-11-06 21:04:57 -0600
commit9d88f5c12288602cd430e42e900bff244dd4baa0 (patch)
tree61ef4b84fd67cc78aac7805e7ca5e18624c0d7d9
parentd2c974f31f0441cc4e9745fe571f3d94fa5fa273 (diff)
downloadayatana-ido-9d88f5c12288602cd430e42e900bff244dd4baa0.tar.gz
ayatana-ido-9d88f5c12288602cd430e42e900bff244dd4baa0.tar.bz2
ayatana-ido-9d88f5c12288602cd430e42e900bff244dd4baa0.zip
add IdoSwitchMenuItem test
-rw-r--r--tests/gtest-menuitems.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/gtest-menuitems.cpp b/tests/gtest-menuitems.cpp
index 901c7bc..55fa4d9 100644
--- a/tests/gtest-menuitems.cpp
+++ b/tests/gtest-menuitems.cpp
@@ -4,6 +4,7 @@
#include "idocalendarmenuitem.h"
#include "idoentrymenuitem.h"
#include "idoscalemenuitem.h"
+#include "idoswitchmenuitem.h"
class TestMenuitems : public ::testing::Test
{
@@ -76,3 +77,18 @@ TEST_F(TestMenuitems, BuildScaleSmall) {
PutInMenu (scale);
return;
}
+
+
+TEST_F(TestMenuitems, BuildSwitch) {
+ GtkWidget * item = ido_switch_menu_item_new ();
+ EXPECT_TRUE (item != NULL);
+ EXPECT_TRUE (IDO_IS_SWITCH_MENU_ITEM(item));
+ EXPECT_TRUE (GTK_IS_MENU_ITEM(item));
+
+ GtkContainer * content_area = ido_switch_menu_item_get_content_area (IDO_SWITCH_MENU_ITEM(item));
+ EXPECT_TRUE (content_area != NULL);
+ EXPECT_TRUE (GTK_IS_CONTAINER (content_area));
+
+ PutInMenu (item);
+ return;
+}