Dali 3D User Interface Engine
utc-Dali-PropertyTypes.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17 
18 #include <iostream>
19 #include <iomanip>
20 #include <stdlib.h>
22 #include <dali-test-suite-utils.h>
23 
24 using namespace Dali;
25 
26 DALI_IMPORT_API const char* const GetName(Property::Type type);
27 
29 {
44  END_TEST;
45 }
46 
48 {
50  END_TEST;
51 }
52 
54 {
56  END_TEST;
57 }
58 
60 {
62  END_TEST;
63 }
64 
66 {
67  DALI_TEST_CHECK( Dali::PropertyTypes::Get<Dali::Vector2>() == Property::VECTOR2 );
68  END_TEST;
69 }
70 
72 {
73  DALI_TEST_CHECK( Dali::PropertyTypes::Get<Dali::Vector3>() == Property::VECTOR3 );
74  END_TEST;
75 }
76 
78 {
79  DALI_TEST_CHECK( Dali::PropertyTypes::Get<Dali::Vector4>() == Property::VECTOR4 );
80  END_TEST;
81 }
82 
84 {
85  DALI_TEST_CHECK( Dali::PropertyTypes::Get<Dali::Matrix3>() == Property::MATRIX3 );
86  END_TEST;
87 }
88 
90 {
91  DALI_TEST_CHECK( Dali::PropertyTypes::Get<Dali::Matrix>() == Property::MATRIX );
92  END_TEST;
93 }
94 
96 {
97  DALI_TEST_CHECK( Dali::PropertyTypes::Get<Dali::AngleAxis>() == Property::ROTATION );
98  END_TEST;
99 }
100 
102 {
103  DALI_TEST_CHECK( Dali::PropertyTypes::Get<Dali::Quaternion>() == Property::ROTATION );
104  END_TEST;
105 }
106 
108 {
109  DALI_TEST_CHECK( Dali::PropertyTypes::Get<std::string>() == Property::STRING );
110  END_TEST;
111 }
112 
114 {
116  END_TEST;
117 }
118 
120 {
121  DALI_TEST_CHECK( Dali::PropertyTypes::Get<Dali::Property::Map>() == Property::MAP );
122  END_TEST;
123 }
124 
126 {
127  DALI_TEST_CHECK( Dali::PropertyTypes::Get<Dali::Property::Array>() == Property::ARRAY );
128  END_TEST;
129 }
Dali Docs Home
Read more about Dali