X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-TextEditor.cpp;h=8e3e0cf05e392b918683f92cbdc00e9e661e682e;hp=b1cc593e03f8debfc282a4af659e74b93ba56ad9;hb=7bc9bb47cb9c552982e9144b202861190eeadc96;hpb=479693b4fd773eb8888ae401d02b49188293e231 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp b/automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp index b1cc593..8e3e0cf 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp @@ -17,7 +17,7 @@ #include #include -#include +#include #include #include #include @@ -597,17 +597,14 @@ int utcDaliTextEditorEvent02(void) application.SendNotification(); application.Render(); - // Check there are the expected number of children ( active layer, offscreen root actor, and the offscreen image actor - DALI_TEST_EQUALS( editor.GetChildCount(), 3u, TEST_LOCATION ); + // Check there are the expected number of children ( offscreen root actor, and the offscreen image view + DALI_TEST_EQUALS( editor.GetChildCount(), 2u, TEST_LOCATION ); - Actor layer = editor.GetChildAt( 0u ); - DALI_TEST_CHECK( layer.IsLayer() ); - - Actor offscreenRoot = editor.GetChildAt( 1u ); + Actor offscreenRoot = editor.GetChildAt( 0u ); DALI_TEST_CHECK( offscreenRoot.IsLayer() ); DALI_TEST_EQUALS( offscreenRoot.GetChildCount(), 1u, TEST_LOCATION ); // The camera actor. - Actor offscreenImage = editor.GetChildAt( 2u ); + Actor offscreenImage = editor.GetChildAt( 1u ); DALI_TEST_CHECK( offscreenImage ); // Create a tap event to touch the text editor. @@ -618,6 +615,9 @@ int utcDaliTextEditorEvent02(void) application.SendNotification(); application.Render(); + Actor layer = editor.GetChildAt( 2u ); + DALI_TEST_CHECK( layer.IsLayer() ); + DALI_TEST_EQUALS( layer.GetChildCount(), 1u, TEST_LOCATION ); // The cursor. DALI_TEST_EQUALS( offscreenRoot.GetChildCount(), 1u, TEST_LOCATION ); // The camera actor. @@ -756,7 +756,7 @@ int utcDaliTextEditorEvent03(void) application.Render(); // The offscreen root actor should have three actors: the camera, a renderer and the highlight actor. - Actor offscreenRoot = editor.GetChildAt( 1u ); + Actor offscreenRoot = editor.GetChildAt( 0u ); DALI_TEST_CHECK( offscreenRoot.IsLayer() ); CameraActor camera = CameraActor::DownCast( offscreenRoot.GetChildAt( 0u ) );