EFL: Mapbuf basic tests
authorJoe Konno <joe.konno@intel.com>
Fri, 17 Aug 2012 16:30:46 +0000 (09:30 -0700)
committerJoe Konno <joe.konno@intel.com>
Fri, 17 Aug 2012 16:30:46 +0000 (09:30 -0700)
Signed-off-by: Joe Konno <joe.konno@intel.com>
src/efl/Makefile.am
src/efl/test_mapbuf.cpp [new file with mode: 0644]

index 6f3726b..a8f6388 100644 (file)
@@ -53,6 +53,7 @@ wayland_efl_test_SOURCES =            \
        test_list.cpp                   \
        test_label.cpp                  \
        test_map.cpp                    \
+       test_mapbuf.cpp                 \
        test_window.cpp                 \
        ../testmain.cpp
 
diff --git a/src/efl/test_mapbuf.cpp b/src/efl/test_mapbuf.cpp
new file mode 100644 (file)
index 0000000..52af46e
--- /dev/null
@@ -0,0 +1,29 @@
+#include "templates.h"
+
+class Mapbuf : public EvasObject
+{
+public:
+       Mapbuf(EvasObject &parent)
+               : EvasObject::EvasObject(elm_mapbuf_add(parent))
+       {
+       }
+};
+
+//TODO: more rigorous tests
+
+typedef ResizeObjectTest<Mapbuf> MapbufResizeTest;
+typedef PositionObjectTest<Mapbuf> MapbufPositionTest;
+typedef VisibleObjectTest<Mapbuf> MapbufVisibilityTest;
+
+BOOST_AUTO_TEST_SUITE(EFL)
+
+       BOOST_AUTO_TEST_SUITE(Mapbuf)
+       
+               WAYLAND_ELM_HARNESS_TEST_CASE(MapbufResizeTest)
+               WAYLAND_ELM_HARNESS_TEST_CASE(MapbufPositionTest)
+               WAYLAND_ELM_HARNESS_TEST_CASE(MapbufVisibilityTest)
+       
+       BOOST_AUTO_TEST_SUITE_END()
+
+BOOST_AUTO_TEST_SUITE_END()
+