X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-internal%2Futc-Dali-TextField-internal.cpp;h=a098f73b551650b441d39ad60a56014139aa909d;hb=26a3b93400d9b9de81db36cbe4cea39f51940d10;hp=5ac4ab13d460ec7fcc04eee72ff57a55c11abb07;hpb=99793f1e33400c0ea9421015e789d8924c7a2a6b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit-internal/utc-Dali-TextField-internal.cpp b/automated-tests/src/dali-toolkit-internal/utc-Dali-TextField-internal.cpp index 5ac4ab1..a098f73 100755 --- a/automated-tests/src/dali-toolkit-internal/utc-Dali-TextField-internal.cpp +++ b/automated-tests/src/dali-toolkit-internal/utc-Dali-TextField-internal.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,12 +36,12 @@ int UtcDaliTextFieldMultipleBackgroundText(void) // Create a text field TextField textField = TextField::New(); - textField.SetSize( 400.f, 60.f ); - textField.SetParentOrigin( ParentOrigin::TOP_LEFT ); - textField.SetAnchorPoint( AnchorPoint::TOP_LEFT ); + textField.SetProperty( Actor::Property::SIZE, Vector2( 400.f, 60.f ) ); + textField.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT ); + textField.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT ); // Add the text field to the stage - Stage::GetCurrent().Add( textField ); + application.GetScene().Add( textField ); application.SendNotification(); application.Render(); @@ -86,7 +86,7 @@ int UtcDaliTextFieldMultipleBackgroundText(void) // Check that the background is created Actor backgroundActor = renderableActor.GetChildAt( 0u ); DALI_TEST_CHECK( backgroundActor ); - DALI_TEST_CHECK( backgroundActor.GetName() == "TextBackgroundColorActor" ); + DALI_TEST_CHECK( backgroundActor.GetProperty< std::string >( Dali::Actor::Property::NAME ) == "TextBackgroundColorActor" ); // Change the text to contain more characters controller->SetText( "Text Multiple Background Test" ); @@ -108,7 +108,7 @@ int UtcDaliTextFieldMultipleBackgroundText(void) // The background should now be lowered below the highlight backgroundActor = stencil.GetChildAt( 0u ); DALI_TEST_CHECK( backgroundActor ); - DALI_TEST_CHECK( backgroundActor.GetName() == "TextBackgroundColorActor" ); + DALI_TEST_CHECK( backgroundActor.GetProperty< std::string >( Dali::Actor::Property::NAME ) == "TextBackgroundColorActor" ); END_TEST; }