UTC test fix and Adaptors initialising accessibility correctly 02/44502/4
authorTom Robinson <tom.robinson@samsung.com>
Wed, 22 Jul 2015 15:31:47 +0000 (16:31 +0100)
committerTom Robinson <tom.robinson@samsung.com>
Thu, 23 Jul 2015 11:30:50 +0000 (04:30 -0700)
Change-Id: Ieb8c851356f2158ac23c3e724ab2a1b0a2b4b275

automated-tests/src/dali-toolkit/utc-Dali-AccessibilityManager.cpp

index d5b9f42d151b35db2ecadb982bdb28d754d237b3..a066d8fb6c66f8ef037bbef9132fa32c447d6794 100644 (file)
@@ -1092,11 +1092,9 @@ int UtcDaliAccessibilityManagerGetReadPositionP(void)
   AccessibilityManager manager = AccessibilityManager::Get();
   DALI_TEST_CHECK( manager );
 
-  Dali::AccessibilityAdaptor accessibilityAdaptor = Dali::AccessibilityAdaptor::Get();
-  Vector2 position( 1.0f, 2.0f );
-  accessibilityAdaptor.MockSetReadPosition( position );
-
-  DALI_TEST_EQUALS( manager.GetReadPosition(), position, TEST_LOCATION );
+  Vector2 readPosition( manager.GetReadPosition() );
+  DALI_TEST_EQUALS( readPosition.x, 0.0f, Math::MACHINE_EPSILON_0, TEST_LOCATION );
+  DALI_TEST_EQUALS( readPosition.y, 0.0f, Math::MACHINE_EPSILON_0, TEST_LOCATION );
 
   END_TEST;
 }