/*
- * Copyright (c) 2018 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.
);
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors ( Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors ( application.GetScene().GetRootLayer() );
// Connect to builder's quit signal
bool functorCalled( false );
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors( Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors( application.GetScene().GetRootLayer() );
Animation anim = builder.CreateAnimation("animate");
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors( Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors( application.GetScene().GetRootLayer() );
Animation anim = builder.CreateAnimation("animate");
DALI_TEST_CHECK(anim);
// alternative actor to use for FindChildByName
- anim = builder.CreateAnimation("animate2", Dali::Stage::GetCurrent().GetRootLayer());
+ anim = builder.CreateAnimation("animate2", application.GetScene().GetRootLayer());
DALI_TEST_CHECK(anim);
// alternative actor to use for FindChildByName
- anim = builder.CreateAnimation("animate2", map, Dali::Stage::GetCurrent().GetRootLayer());
+ anim = builder.CreateAnimation("animate2", map, application.GetScene().GetRootLayer());
DALI_TEST_CHECK(anim);
DALI_TEST_CHECK( value.GetType() != Property::NONE );
- builder.AddActors ( Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors ( application.GetScene().GetRootLayer() );
DALI_TEST_CHECK( builder );
- Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("image");
+ Actor actor = application.GetScene().GetRootLayer().FindChildByName("image");
DALI_TEST_CHECK( actor );
END_TEST;
Builder builder = Builder::New();
builder.LoadFromString( json );
- unsigned int count = Stage::GetCurrent().GetRenderTaskList().GetTaskCount();
+ unsigned int count = application.GetScene().GetRenderTaskList().GetTaskCount();
// coverage
builder.CreateRenderTask( "task0" );
DALI_TEST_CHECK( count <
- Stage::GetCurrent().GetRenderTaskList().GetTaskCount() );
+ application.GetScene().GetRenderTaskList().GetTaskCount() );
END_TEST;
}
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors ( Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors ( application.GetScene().GetRootLayer() );
// Render and notify
application.SendNotification();
application.SendNotification();
application.Render();
- Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("subActor");
+ Actor actor = application.GetScene().GetRootLayer().FindChildByName("subActor");
DALI_TEST_CHECK( actor );
DALI_TEST_CHECK( !actor.GetCurrentProperty< bool >( Actor::Property::VISIBLE ) );
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors ( Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors ( application.GetScene().GetRootLayer() );
// Render and notify
application.SendNotification();
application.SendNotification();
application.Render();
- Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("subActor");
+ Actor actor = application.GetScene().GetRootLayer().FindChildByName("subActor");
DALI_TEST_CHECK( actor );
DALI_TEST_CHECK( !actor.GetCurrentProperty< bool >( Actor::Property::VISIBLE ) );
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors ( Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors ( application.GetScene().GetRootLayer() );
// Render and notify
application.SendNotification();
application.SendNotification();
application.Render();
- Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("actor");
+ Actor actor = application.GetScene().GetRootLayer().FindChildByName("actor");
DALI_TEST_CHECK( actor );
DALI_TEST_CHECK( !actor.GetCurrentProperty< bool >( Actor::Property::VISIBLE ) );
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors ( Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors ( application.GetScene().GetRootLayer() );
// Render and notify
application.SendNotification();
application.SendNotification();
application.Render();
- Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("actor");
+ Actor actor = application.GetScene().GetRootLayer().FindChildByName("actor");
DALI_TEST_CHECK( actor );
DALI_TEST_CHECK( actor.GetCurrentProperty< bool >( Actor::Property::VISIBLE ) );
{
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors ( Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors ( application.GetScene().GetRootLayer() );
DALI_TEST_CHECK( false );
}
catch(...)
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors ( "stage", Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors ( "stage", application.GetScene().GetRootLayer() );
// Render and notify
application.SendNotification();
application.Render();
- Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("Image1");
+ Actor actor = application.GetScene().GetRootLayer().FindChildByName("Image1");
// coverage
DALI_TEST_CHECK( actor );
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors ( "arbitarysection", Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors ( "arbitarysection", application.GetScene().GetRootLayer() );
// Render and notify
application.SendNotification();
application.Render();
- Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("subActor");
+ Actor actor = application.GetScene().GetRootLayer().FindChildByName("subActor");
DALI_TEST_CHECK( actor );
DALI_TEST_CHECK( !actor.GetCurrentProperty< bool >( Actor::Property::VISIBLE ) );
// For coverage
Actor actor = Actor::New();
- Stage::GetCurrent().Add( actor );
+ application.GetScene().Add( actor );
builder.AddActors( actor );
// Render and notify
builder.LoadFromString( json );
Test::TestButton testButton = Test::TestButton::New();
- Stage::GetCurrent().Add( testButton );
+ application.GetScene().Add( testButton );
// Render and notify
application.SendNotification();
builder.LoadFromString( json );
Test::TestButton testButton = Test::TestButton::New();
- Stage::GetCurrent().Add( testButton );
+ application.GetScene().Add( testButton );
// Render and notify
application.SendNotification();
);
Actor rootActor = Actor::New();
- Stage::GetCurrent().Add( rootActor );
+ application.GetScene().Add( rootActor );
Builder builder = Builder::New();
builder.LoadFromString( json );
);
Actor rootActor = Actor::New();
- Stage::GetCurrent().Add( rootActor );
+ application.GetScene().Add( rootActor );
Builder builder = Builder::New();
builder.LoadFromString( json );
);
Actor rootActor = Actor::New();
- Stage::GetCurrent().Add( rootActor );
+ application.GetScene().Add( rootActor );
Builder builder = Builder::New();
builder.LoadFromString( json );
Builder builder = Builder::New();
builder.LoadFromString( json );
- builder.AddActors( Stage::GetCurrent().GetRootLayer() );
+ builder.AddActors( application.GetScene().GetRootLayer() );
DALI_TEST_CHECK( true ); // For Coverage