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-BubbleEmitter.cpp;h=1c464557384923489074edf79585d5a17cc0fdb7;hp=1b15e74f7fc4d3fe9de0e8e23e9bacc452fc1ddc;hb=8a647e87a01c5c78451653c1264a9eea81ac9b20;hpb=ad110f27c01af7e617df158891eef5cf60bf22e6 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-BubbleEmitter.cpp b/automated-tests/src/dali-toolkit/utc-Dali-BubbleEmitter.cpp index 1b15e74..1c46455 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-BubbleEmitter.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-BubbleEmitter.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 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. @@ -99,7 +99,7 @@ int UtcDaliBubbleEmitterNew(void) DALI_TEST_CHECK( emitter ); // Additional check to ensure object is created by checking if it's registered - ObjectRegistry registry = Stage::GetCurrent().GetObjectRegistry(); + ObjectRegistry registry = application.GetCore().GetObjectRegistry(); DALI_TEST_CHECK( registry ); gObjectCreatedCallBackCalled = false; registry.ObjectCreatedSignal().Connect( &TestCallback ); @@ -169,7 +169,7 @@ int UtcDaliBubbleEmitterSetBackground(void) Texture shapeImage = CreateSolidColorTexture( application, Color::GREEN, 5, 5 ); BubbleEmitter emitter = BubbleEmitter::New( Vector2(50.f,50.f),shapeImage, 200, Vector2( 5.f, 10.f )); - RenderTaskList taskList = Stage::GetCurrent().GetRenderTaskList(); + RenderTaskList taskList = application.GetScene().GetRenderTaskList(); unsigned int taskCount = taskList.GetTaskCount(); Texture bgImage = CreateSolidColorTexture( application, Color::RED, 50, 50 ); @@ -197,7 +197,7 @@ int UtcDaliBubbleEmitterSetBubbleScale(void) BubbleEmitter emitter = BubbleEmitter::New( Vector2(50.f,50.f),shapeImage, 150, Vector2( 5.f, 10.f )); DALI_TEST_CHECK(emitter); Actor root = emitter.GetRootActor(); - Stage::GetCurrent().Add( root ); + application.GetScene().Add( root ); root.SetProperty( Actor::Property::POSITION, Vector3::ZERO ); root.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); root.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); @@ -274,7 +274,7 @@ int UtcDaliBubbleEmitterEmitBubble(void) Actor root = emitter.GetRootActor(); Renderer bubbleRenderer = root.GetRendererAt( 0 ); - Stage::GetCurrent().Add( root ); + application.GetScene().Add( root ); DALI_TEST_CHECK( bubbleRenderer ); Property::Index propertyIndex0 = bubbleRenderer.GetPropertyIndex( "uPercentage[0]" ); @@ -320,7 +320,7 @@ int UtcDaliBubbleEmitterRestore(void) Texture shapeImage = CreateSolidColorTexture( application, Color::GREEN, 5, 5 ); BubbleEmitter emitter = BubbleEmitter::New( movementArea,shapeImage, 90, Vector2( 5.f, 10.f )); Actor root = emitter.GetRootActor(); - Stage::GetCurrent().Add( root ); + application.GetScene().Add( root ); root.SetProperty( Actor::Property::POSITION, Vector3::ZERO ); root.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); root.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );