X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-unmanaged%2Futc-Dali-View.cpp;h=21a57df23cf8780af4afef4be0f3847bd14e4975;hp=80126c833e44c49f9aafe080fd332659edb62b85;hb=966b18f7fa3989309dbf22d38cbc7750785f8333;hpb=30f6ca1e541089b19f2b349a8a12d8a5bcaf2f9e diff --git a/automated-tests/src/dali-toolkit-unmanaged/utc-Dali-View.cpp b/automated-tests/src/dali-toolkit-unmanaged/utc-Dali-View.cpp index 80126c8..21a57df 100644 --- a/automated-tests/src/dali-toolkit-unmanaged/utc-Dali-View.cpp +++ b/automated-tests/src/dali-toolkit-unmanaged/utc-Dali-View.cpp @@ -1,18 +1,19 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ #include #include @@ -72,9 +73,9 @@ int UtcDaliViewNew(void) View view3 = view2; DALI_TEST_CHECK( view3 ); - view1 = NULL; - view2 = NULL; - view3 = NULL; + view1.Reset(); + view2.Reset(); + view3.Reset(); //Additional check to ensure object is created by checking if it's registered ObjectRegistry registry = Stage::GetCurrent().GetObjectRegistry(); @@ -188,8 +189,8 @@ int UtcDaliViewAddGetRemoveContentLayer02(void) } catch( DaliException& e ) { - tet_printf("Assertion %s failed at %s when an unitialized layer is added.\n", e.mCondition.c_str(), e.mLocation.c_str()); - DALI_TEST_EQUALS( e.mCondition, "layer", TEST_LOCATION ); + DALI_TEST_PRINT_ASSERT( e ); + DALI_TEST_EQUALS( e.condition, "layer", TEST_LOCATION ); } // Test: get a layer which was not added before. @@ -261,8 +262,8 @@ int UtcDaliViewSetGetBackgroundLayer02(void) } catch( DaliException& e ) { - tet_printf("Assertion %s failed at %s when trying to add background to the view and the view is not on the stage.\n", e.mCondition.c_str(), e.mLocation.c_str()); - DALI_TEST_EQUALS( e.mCondition, "mBackgroundLayer.OnStage()", TEST_LOCATION ); + DALI_TEST_PRINT_ASSERT( e ); + DALI_TEST_EQUALS( e.condition, "mBackgroundLayer.OnStage()", TEST_LOCATION ); assert = true; }