efl: add Ecore_Wl_Window test... this should fail until E commit 83303
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 24 Jan 2013 16:26:30 +0000 (08:26 -0800)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 24 Jan 2013 16:26:30 +0000 (08:26 -0800)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/efl/elmtestharness.h
src/efl/test_window.cpp

index a810dbc..7d3fa8b 100644 (file)
@@ -40,6 +40,8 @@ public:
         **/
        virtual void teardown() { };
 
+       void noop() { };
+
 private:
        static Eina_Bool idleSetup(void*);
        static Eina_Bool doTestSetup(void*, int, void*);
index 823999f..0c81cb1 100644 (file)
@@ -421,6 +421,37 @@ private:
        vector<Elm_Win_Indicator_Opacity_Mode>  modes_;
 };
 
+class EcoreWlWindowTest : public ElmTestHarness
+{
+public:
+       EcoreWlWindowTest()
+               : ElmTestHarness::ElmTestHarness()
+               , window_("EcoreWlWindowTest", "EcoreWlWindowTest")
+       {
+               return;
+       }
+
+       void setup()
+       {
+               window_.show();
+
+               queueCallback(
+                       ModifyCheckCallback(
+                               boost::bind(&EcoreWlWindowTest::noop, boost::ref(*this)),
+                               boost::bind(&EcoreWlWindowTest::check, boost::ref(*this))
+                       )
+               );
+       }
+
+       void check()
+       {
+               ASSERT(elm_win_wl_window_get(window_) != NULL);
+       }
+
+private:
+       Window  window_;
+};
+
 WAYLAND_ELM_HARNESS_TEST_CASE(WindowResizeTest, "Window")
 WAYLAND_ELM_HARNESS_TEST_CASE(WindowMoveTest, "Window")
 WAYLAND_ELM_HARNESS_TEST_CASE(WindowIconifyTest, "Window")
@@ -433,4 +464,4 @@ WAYLAND_ELM_HARNESS_TEST_CASE(WindowRotationTest, "Window")
 WAYLAND_ELM_HARNESS_TEST_CASE(WindowAlphaTest, "Window")
 WAYLAND_ELM_HARNESS_TEST_CASE(WindowIndicatorTest, "Window")
 WAYLAND_ELM_HARNESS_TEST_CASE(WindowIndicatorOpacityTest, "Window")
-
+WAYLAND_ELM_HARNESS_TEST_CASE(EcoreWlWindowTest, "Window")