Updates for const->constexpr
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit-internal / utc-Dali-ItemView-internal.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 3ca8d0a..8e483ad
@@ -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.
@@ -75,10 +75,7 @@ public: // From ItemFactory
   virtual Actor NewItem(unsigned int itemId)
   {
     // Create a renderable actor for this item
-    Image image = ResourceImage::New( TEST_IMAGE_FILE_NAME );
-    Actor actor = CreateRenderableActor(image);
-
-    return actor;
+    return ImageView::New( TEST_IMAGE_FILE_NAME );
   }
 };
 
@@ -105,8 +102,8 @@ int UtcDaliItemLayoutCheckPropertiesSetBeforeActivateLayout(void)
 
   Dali::Toolkit::Internal::GridLayout* gridLayout = dynamic_cast<Dali::Toolkit::Internal::GridLayout*>(view.GetLayout(0).Get());
 
-  Dali::Stage stage = Dali::Stage::GetCurrent();
-  Vector3 stageSize(stage.GetSize());
+  Dali::Integration::Scene scene = application.GetScene();
+  Vector3 stageSize(scene.GetSize());
 
   //Check if the number of columns is equals to 6 which is set before.
   DALI_TEST_EQUALS(gridLayout->GetNumberOfColumns(), 6, TEST_LOCATION );