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-NavigationControl.cpp;h=b3cb88169de94392b230210489a53a8b22b68672;hp=7382bcdb1820c923ba9b1ed5119ef91ddd6c0228;hb=24b3e26d147f772b0396937442484ff75b327aa7;hpb=30f6ca1e541089b19f2b349a8a12d8a5bcaf2f9e diff --git a/automated-tests/src/dali-toolkit-unmanaged/utc-Dali-NavigationControl.cpp b/automated-tests/src/dali-toolkit-unmanaged/utc-Dali-NavigationControl.cpp index 7382bcd..b3cb881 100644 --- a/automated-tests/src/dali-toolkit-unmanaged/utc-Dali-NavigationControl.cpp +++ b/automated-tests/src/dali-toolkit-unmanaged/utc-Dali-NavigationControl.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 @@ -271,8 +272,8 @@ int UtcDaliNavigationControlSetBackground(void) } catch (Dali::DaliException& e) { - tet_printf("Assertion %s failed at %s\n", e.mCondition.c_str(), e.mLocation.c_str()); - DALI_TEST_EQUALS(e.mCondition, "segmentIndex+1 < mKnots.size() && segmentIndex < mKnots.size()", TEST_LOCATION); + DALI_TEST_PRINT_ASSERT( e ); + DALI_TEST_EQUALS(e.condition, "segmentIndex+1 < mKnots.size() && segmentIndex < mKnots.size()", TEST_LOCATION); tet_result(TET_FAIL); } @@ -326,15 +327,11 @@ int UtcDaliNavigationControlCreateNavigationTitleBar(void) tet_infoline( "UtcDaliNavigationControlCreateNavigationTitleBar" ); ImageActor background = CreateSolidColorActor( Color::RED ); - TextStyle textStyle; Stage stage = Stage::GetCurrent(); NavigationControl naviControl = NavigationControl::New(); stage.Add( naviControl ); - Toolkit::NaviTitleBarStyle titleBarStyle( background, textStyle, textStyle, 720, 111, 68, 48, 34, 16, 11, 45, 63, 26, 14, 22 ); - naviControl.CreateNavigationTitleBar( titleBarStyle, titleBarStyle ); - Page naviItem = Page::New(); PushButton firstControl = PushButton::New();