(Automated Tests) Use Scene instead of Stage
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / utc-Dali-ToggleButton.cpp
old mode 100755 (executable)
new mode 100644 (file)
index a266532..8e6b54f
@@ -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.
@@ -171,7 +171,7 @@ int UtcDaliToggleButtonToggleStatesProperty(void)
 
   // Create the ToggleButton actor
   ToggleButton toggleButton = ToggleButton::New();
-  Stage::GetCurrent().Add( toggleButton );
+  application.GetScene().Add( toggleButton );
   toggleButton.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::TOP_LEFT);
   toggleButton.SetProperty( Actor::Property::ANCHOR_POINT,ParentOrigin::TOP_LEFT);
   toggleButton.SetProperty( Actor::Property::POSITION, Vector2( 0.0f, 0.0f ));
@@ -252,7 +252,7 @@ int UtcDaliToggleButtonToggleTipsProperty( void )
 
   // Create the ToggleButton actor
   ToggleButton toggleButton = ToggleButton::New();
-  Stage::GetCurrent().Add( toggleButton );
+  application.GetScene().Add( toggleButton );
   toggleButton.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::TOP_LEFT);
   toggleButton.SetProperty( Actor::Property::ANCHOR_POINT,ParentOrigin::TOP_LEFT);
   toggleButton.SetProperty( Actor::Property::POSITION, Vector2( 0.0f, 0.0f ));
@@ -311,7 +311,7 @@ int UtcDaliToggleButtonStateChange(void)
 
   // Create the ToggleButton actor
   ToggleButton toggleButton = ToggleButton::New();
-  Stage::GetCurrent().Add( toggleButton );
+  application.GetScene().Add( toggleButton );
   toggleButton.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::TOP_LEFT);
   toggleButton.SetProperty( Actor::Property::ANCHOR_POINT,ParentOrigin::TOP_LEFT);
   toggleButton.SetProperty( Actor::Property::POSITION, BUTTON_POSITON_TO_GET_INSIDE_TOUCH_EVENTS );