harness: move pointer to origin before each test begins
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Wed, 12 Mar 2014 19:58:55 +0000 (12:58 -0700)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Wed, 12 Mar 2014 19:58:55 +0000 (12:58 -0700)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/test/core/harness.cpp
src/test/efl/elmtestharness.cpp

index 9c4eda1..4816753 100644 (file)
@@ -44,7 +44,9 @@ Harness::Harness()
        , display_()
        , client_(display_)
 {
-       return;
+       queueStep(
+               boost::bind(&Harness::setGlobalPointerPosition, boost::ref(*this), 0, 0)
+       );
 }
 
 Harness::~Harness()
index b4a0cd7..647a14f 100644 (file)
@@ -55,6 +55,8 @@ void ElmTestHarness::testThreadRunner()
        // flush out all the widget and window animations
        yield(0.5*1e6, true);
 
+       setGlobalPointerPosition(0, 0);
+
        test();
 
        Application::exit();