(Automated Tests) Use Scene instead of Stage
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / utc-Dali-CheckBoxButton.cpp
index b1f43b7..cc8d381 100644 (file)
@@ -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.
@@ -194,7 +194,7 @@ int UtcDaliCheckBoxSetDisabledPropertyP(void)
   ToolkitTestApplication application;
 
   CheckBoxButton checkBox = CheckBoxButton::New();
-  Stage::GetCurrent().Add( checkBox );
+  application.GetScene().Add( checkBox );
 
   checkBox.SetProperty( Actor::Property::SIZE, Vector2( 20.0f, 20.0f ) );
   checkBox.SetProperty(checkBox.GetPropertyIndex("disabledUnselectedBackgroundVisual"),  "Image.jpg" );
@@ -365,7 +365,7 @@ int UtcDaliCheckBoxSetLabelDisabledP(void)
   ToolkitTestApplication application;
 
   CheckBoxButton checkBox = CheckBoxButton::New();
-  Stage::GetCurrent().Add( checkBox );
+  application.GetScene().Add( checkBox );
 
   checkBox.SetProperty( Actor::Property::SIZE, Vector2( 20.0f, 20.0f ) );
   checkBox.SetProperty(Button::Property::DISABLED_UNSELECTED_VISUAL, "Image.jpg" );