2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
21 #include <dali/public-api/dali-core.h>
22 #include <dali/integration-api/glyph-set.h>
23 #include <dali-test-suite-utils.h>
25 // Internal headers are allowed here
27 #include <dali/internal/event/text/text-impl.h>
31 void utc_dali_internal_text_startup()
33 test_return_value = TET_UNDEF;
36 void utc_dali_internal_text_cleanup()
38 test_return_value = TET_PASS;
42 int UtcDaliTextGetImplementation(void)
44 TestApplication application;
53 const Internal::Text& impl = text.GetImplementation();
54 (void)impl; // Avoid unused variable warning
56 catch( DaliException& e )
58 tet_printf( "Assertion %s failed at %s\n", e.mCondition.c_str(), e.mLocation.c_str() );
59 DALI_TEST_EQUALS( e.mCondition, "NULL != mImpl && \"Text::GetImplementation: Text is uninitialized\"", TEST_LOCATION );
64 try // non const getImp
66 Internal::Text& impl = text.GetImplementation();
67 (void)impl; // Avoid unused variable warning
69 catch( DaliException& e )
71 tet_printf( "Assertion %s failed at %s\n", e.mCondition.c_str(), e.mLocation.c_str() );
72 DALI_TEST_EQUALS( e.mCondition, "NULL != mImpl && \"Text::GetImplementation: Text is uninitialized\"", TEST_LOCATION );
77 if( assert1 && assert2 )
79 tet_result( TET_PASS );
83 tet_result( TET_FAIL );