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-ImageAtlas.cpp;h=25d83ba54ee6fb4e4636689cb1d7438e6971a6bc;hp=90af3333285fcaf076c0c48de5b8302d66190dcd;hb=528aa3699cd51dab5115bca1aaebb65d4bc67c15;hpb=ad110f27c01af7e617df158891eef5cf60bf22e6 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ImageAtlas.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ImageAtlas.cpp index 90af333..25d83ba 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ImageAtlas.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ImageAtlas.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. @@ -418,9 +418,9 @@ int UtcDaliImageAtlasImageView(void) imageView2.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS ); application.GetPlatform().SetClosestImageSize( Vector2(34, 34) ); - Stage::GetCurrent().Add( imageView1 ); + application.GetScene().Add( imageView1 ); application.GetPlatform().SetClosestImageSize( Vector2(50, 50) ); - Stage::GetCurrent().Add( imageView2 ); + application.GetScene().Add( imageView2 ); DALI_TEST_EQUALS( Test::WaitForEventThreadTrigger( 2 ), true, TEST_LOCATION ); @@ -449,7 +449,7 @@ int UtcDaliImageAtlasImageView(void) // remove the imageView2 from stage, the second image will also be removed from atlas // then the space on the atlas will be used by the third image added. - Stage::GetCurrent().Remove( imageView2 ); + application.GetScene().Remove( imageView2 ); application.SendNotification(); application.Render(RENDER_FRAME_INTERVAL); @@ -463,7 +463,7 @@ int UtcDaliImageAtlasImageView(void) imageView3.SetProperty( ImageView::Property::IMAGE, imageMap3 ); application.GetPlatform().SetClosestImageSize( Vector2(100, 100) ); - Stage::GetCurrent().Add( imageView3 ); + application.GetScene().Add( imageView3 ); DALI_TEST_EQUALS( Test::WaitForEventThreadTrigger( 1 ), true, TEST_LOCATION );