(Automated Tests) Use Scene instead of Stage
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / utc-Dali-Model3dView.cpp
index 3f30df1..b13cacb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 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.
@@ -123,7 +123,7 @@ int UtcDaliModelViewPropertyNames(void)
   DALI_TEST_CHECK( val.Get( obj_file_name ) );
   DALI_TEST_EQUALS( obj_file_name, TEST_RESOURCE_LOCATION, TEST_LOCATION );
 
-  Stage::GetCurrent().Add(view);
+  application.GetScene().Add(view);
 
   END_TEST;
 }
@@ -142,9 +142,9 @@ int UtcDaliModelViewAddRemove(void)
 
 
   view.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER);
-  view.SetProperty( Actor::Property::SIZE, Stage::GetCurrent().GetSize());
+  view.SetProperty( Actor::Property::SIZE, application.GetScene().GetSize());
   view.Add(actor);
-  Stage::GetCurrent().Add(view);
+  application.GetScene().Add(view);
 
   DALI_TEST_CHECK( actor.GetProperty< bool >( Actor::Property::CONNECTED_TO_SCENE ) );
 
@@ -199,7 +199,7 @@ int UtcDaliModelOnSizeSet(void)
 
   Model3dView view = Toolkit::Model3dView::New();
 
-  Stage::GetCurrent().Add( view );
+  application.GetScene().Add( view );
 
   application.SendNotification();
   application.Render();