2 * Copyright (c) 2016 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.
23 #include <dali-toolkit-test-suite-utils.h>
24 #include <dali-toolkit/dali-toolkit.h>
25 #include <dali-toolkit/internal/text/rendering/text-typesetter.h>
26 #include <dali-toolkit/internal/text/rendering/view-model.h>
27 #include <dali-toolkit/internal/text/text-controller.h>
30 using namespace Toolkit;
33 int UtcDaliTextTypesetter(void)
35 tet_infoline(" UtcDaliTextTypesetter");
36 ToolkitTestApplication application;
38 // Creates a text controller.
39 ControllerPtr controller = Controller::New();
41 // Tests the rendering controller has been created.
42 TypesetterPtr typesetter = Typesetter::New( controller->GetTextModel() );
43 DALI_TEST_CHECK( typesetter );
49 int UtcDaliTextTypesetterGetViewModel(void)
51 tet_infoline(" UtcDaliTextTypesetter");
52 ToolkitTestApplication application;
54 // Creates a text controller.
55 ControllerPtr controller = Controller::New();
57 // Tests the rendering controller has been created.
58 TypesetterPtr typesetter = Typesetter::New( controller->GetTextModel() );
59 DALI_TEST_CHECK( typesetter );
61 // Tests the view model has been created.
62 ViewModel* model = typesetter->GetViewModel();
63 DALI_TEST_CHECK( NULL != model );