X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-TableView.cpp;h=9c1e05431122ff15998c5275c6645cfd2707c254;hp=6254e7adc16114903b20e93aa62ad79882c4a5bd;hb=7f36ca9572ba3086167d5238a7aff909b56a50f4;hpb=36a298758d1b6244b7846a0102b528d76002dbda diff --git a/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp b/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp index 6254e7a..9c1e054 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp @@ -693,13 +693,14 @@ int UtcDaliTableViewCustomProperties(void) // Create a 10x10 table-view TableView tableView = TableView::New(10,10); - Constraint constraint = Constraint::New( tableView, Actor::Property::SIZE, Constraint100() ); - constraint.Apply(); + Stage::GetCurrent().Add( tableView ); + tableView.SetSize( Dali::Vector2( 100.0f, 100.0f ) ); + DALI_TEST_CHECK( tableView ); // Create a child actor with the custom properties Actor child1 = Actor::New(); - child1.RegisterProperty( TableView::CELL_INDICES_PROPERTY_NAME, Vector2( 3, 4 ) ); + child1.RegisterProperty( "cell-index", Vector2( 3, 4 ), Property::READ_WRITE ); tableView.Add( child1 ); // Check for actors at actual positions. DALI_TEST_CHECK( tableView.GetChildAt(TableView::CellPosition(3,4)) == child1); @@ -708,9 +709,9 @@ int UtcDaliTableViewCustomProperties(void) Actor child2 = Actor::New(); float rowSpan = 3.f; float columnSpan = 2.f; - child2.RegisterProperty( TableView::CELL_INDICES_PROPERTY_NAME, Vector2( 6, 1 ) ); - child2.RegisterProperty( TableView::ROW_SPAN_PROPERTY_NAME, rowSpan ); - child2.RegisterProperty( TableView::COLUMN_SPAN_PROPERTY_NAME, columnSpan ); + child2.RegisterProperty( "cell-index", Vector2( 6, 1 ), Property::READ_WRITE ); + child2.RegisterProperty( "row-span", rowSpan, Property::READ_WRITE ); + child2.RegisterProperty( "column-span", columnSpan, Property::READ_WRITE ); tableView.Add( child2 ); // Check for actors at actual positions. for( int i=0; i