X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-TableView.cpp;h=7c6decefaad7a0996e585356731103ff9c9a2bd0;hb=a57d543cd372560a9065a31b32184a6a02d49e77;hp=29807e0161e6c4041d981fbeb0209e90fcf5b90b;hpb=fca202af829a0657805e44461f08f284cdbf0bbb;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp b/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp index 29807e0..7c6dece 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp @@ -20,6 +20,7 @@ #include #include #include +#include using namespace Dali; using namespace Toolkit; @@ -67,12 +68,12 @@ struct Constraint100 }; // Convenience function to quickly set up a 10x10 table with each cell being 10x10 pixels in size by default. -static void SetupTableViewAndActors(TableView& tableView, Actor& actor1, Actor& actor2, Actor& actor3) +static void SetupTableViewAndActors(Integration::Scene scene, TableView& tableView, Actor& actor1, Actor& actor2, Actor& actor3) { tableView = TableView::New( 10, 10 ); // 10 by 10 grid. DALI_TEST_CHECK( tableView ); - Stage::GetCurrent().Add( tableView ); + scene.Add( tableView ); tableView.SetProperty( Actor::Property::SIZE, Vector2(100.0f, 100.0f) ); actor1 = Actor::New(); @@ -109,7 +110,7 @@ int UtcDaliTableViewNew(void) DALI_TEST_CHECK(tableView); //Additional check to ensure object is created by checking if it's registered - ObjectRegistry registry = Stage::GetCurrent().GetObjectRegistry(); + ObjectRegistry registry = application.GetCore().GetObjectRegistry(); DALI_TEST_CHECK( registry ); gObjectCreatedCallBackCalled = false; @@ -133,7 +134,7 @@ int UtcDaliTableViewMetricsPadding(void) Actor actor2; Actor actor3; - SetupTableViewAndActors(tableView, actor1, actor2, actor3); + SetupTableViewAndActors(application.GetScene(), tableView, actor1, actor2, actor3); // 1. check that padding works. no padding: tableView.SetCellPadding(Size(0.0f, 0.0f)); @@ -167,7 +168,7 @@ int UtcDaliTableViewMetricsFit(void) Actor actor2; Actor actor3; - SetupTableViewAndActors(tableView, actor1, actor2, actor3); + SetupTableViewAndActors(application.GetScene(), tableView, actor1, actor2, actor3); application.SendNotification(); application.Render(); @@ -220,7 +221,7 @@ int UtcDaliTableViewMetricsFixed(void) Actor actor2; Actor actor3; - SetupTableViewAndActors(tableView, actor1, actor2, actor3); + SetupTableViewAndActors(application.GetScene(), tableView, actor1, actor2, actor3); application.SendNotification(); application.Render(); @@ -256,7 +257,7 @@ int UtcDaliTableViewMetricsRelative(void) Actor actor2; Actor actor3; - SetupTableViewAndActors(tableView, actor1, actor2, actor3); + SetupTableViewAndActors(application.GetScene(), tableView, actor1, actor2, actor3); application.SendNotification(); application.Render(); @@ -710,7 +711,7 @@ int UtcDaliTableViewChildProperties(void) // Create a 10x10 table-view TableView tableView = TableView::New(10,10); - Stage::GetCurrent().Add( tableView ); + application.GetScene().Add( tableView ); tableView.SetProperty( Actor::Property::SIZE, Vector2(100.0f, 100.0f) ); DALI_TEST_CHECK( tableView ); @@ -873,7 +874,7 @@ int UtcDaliTableViewKeyboardFocus(void) } } - Stage::GetCurrent().Add( tableView ); + application.GetScene().Add( tableView ); application.SendNotification(); application.Render(); @@ -978,7 +979,7 @@ int UtcDaliTableViewKeyboardFocusInNestedTableView(void) } } - Stage::GetCurrent().Add( tableView ); + application.GetScene().Add( tableView ); application.SendNotification(); application.Render();