void PropertyMapOperatorAssignmentP3();
void PropertyMapSquareOperatorP();
void PropertyMapConstSquareOperatorP();
-void PropertyMapConstSquareOperatorN();
namespace
{
enum TEST_CASES_LIST_PROPERTY_MAP
PROPERTY_MAP_ASSIGNMENT_OPERATOR_P2,
PROPERTY_MAP_ASSIGNMENT_OPERATOR_P3,
PROPERTY_MAP_SQUARE_OPERATOR_P,
- PROPERTY_MAP_CONST_SQUARE_OPERATOR_P,
- PROPERTY_MAP_CONST_SQUARE_OPERATOR_N
+ PROPERTY_MAP_CONST_SQUARE_OPERATOR_P
};
struct Property_Map_TestApp : public ConnectionTracker
case PROPERTY_MAP_CONST_SQUARE_OPERATOR_P:
PropertyMapConstSquareOperatorP();
break;
-
- case PROPERTY_MAP_CONST_SQUARE_OPERATOR_N:
- PropertyMapConstSquareOperatorN();
- break;
}
}
// Data
DaliLog::PrintPass();
}
-void PropertyMapConstSquareOperatorN()
-{
- Property::Map propMap;
- DALI_CHECK_FAIL(!propMap.Empty(), "property is not empty which is not expected");
-
- unsigned int uCountReal = propMap.Count();
- DALI_CHECK_FAIL( uCountReal != 0 , "property count should be 0 but it is not match with expected"); //Should only have zero items !!
-
- const Property::Map& constPropMap = propMap;
- try
- {
- Property::Value value = constPropMap[200];
- test_return_value=TC_FAIL;
- }
- catch (Dali::DaliException& e)
- {
- LOG_E("Cannot create a new value on a constant Property::Map so exception should be thrown");
- }
-
- DaliLog::PrintPass();
-}
/**
* End of TC Logic Implementation Area.
application.MainLoop();
return test_return_value;
}
-
-/**
- * @testcase UtcDaliPropertyMapConstSquareOperatorN
- * @since_tizen 2.4
- * @description Check if the square operator works
- */
-int UtcDaliPropertyMapConstSquareOperatorN(void)
-{
- DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
- Application application = Application::New( &gArgc, &gArgv );
- CHECK_GL;
- Property_Map_TestApp testApp( application, PROPERTY_MAP_CONST_SQUARE_OPERATOR_N);
- application.MainLoop();
- return test_return_value;
-}
extern int UtcDaliPropertyMapOperatorAssignmentP3(void);
extern int UtcDaliPropertyMapSquareOperatorP(void);
extern int UtcDaliPropertyMapConstSquareOperatorP(void);
-extern int UtcDaliPropertyMapConstSquareOperatorN(void);
//property-array
extern int UtcDaliPropertyArrayConstructorP(void);
{"UtcDaliPropertyMapOperatorAssignmentP3", UtcDaliPropertyMapOperatorAssignmentP3, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyMapSquareOperatorP", UtcDaliPropertyMapSquareOperatorP, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyMapConstSquareOperatorP", UtcDaliPropertyMapConstSquareOperatorP, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
- {"UtcDaliPropertyMapConstSquareOperatorN", UtcDaliPropertyMapConstSquareOperatorN, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyArrayConstructorP", UtcDaliPropertyArrayConstructorP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
{"UtcDaliPropertyArrayCopyConstructorP", UtcDaliPropertyArrayCopyConstructorP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
{"UtcDaliPropertyArraySizeP", UtcDaliPropertyArraySizeP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
extern int UtcDaliPropertyMapOperatorAssignmentP3(void);
extern int UtcDaliPropertyMapSquareOperatorP(void);
extern int UtcDaliPropertyMapConstSquareOperatorP(void);
-extern int UtcDaliPropertyMapConstSquareOperatorN(void);
//property-array
extern int UtcDaliPropertyArrayConstructorP(void);
{"UtcDaliPropertyMapOperatorAssignmentP3", UtcDaliPropertyMapOperatorAssignmentP3, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyMapSquareOperatorP", UtcDaliPropertyMapSquareOperatorP, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyMapConstSquareOperatorP", UtcDaliPropertyMapConstSquareOperatorP, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
- {"UtcDaliPropertyMapConstSquareOperatorN", UtcDaliPropertyMapConstSquareOperatorN, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyArrayConstructorP", UtcDaliPropertyArrayConstructorP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
{"UtcDaliPropertyArrayCopyConstructorP", UtcDaliPropertyArrayCopyConstructorP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
{"UtcDaliPropertyArraySizeP", UtcDaliPropertyArraySizeP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
extern int UtcDaliPropertyMapOperatorAssignmentP3(void);
extern int UtcDaliPropertyMapSquareOperatorP(void);
extern int UtcDaliPropertyMapConstSquareOperatorP(void);
-extern int UtcDaliPropertyMapConstSquareOperatorN(void);
//property-array
extern int UtcDaliPropertyArrayConstructorP(void);
{"UtcDaliPropertyMapOperatorAssignmentP3", UtcDaliPropertyMapOperatorAssignmentP3, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyMapSquareOperatorP", UtcDaliPropertyMapSquareOperatorP, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyMapConstSquareOperatorP", UtcDaliPropertyMapConstSquareOperatorP, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
- {"UtcDaliPropertyMapConstSquareOperatorN", UtcDaliPropertyMapConstSquareOperatorN, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyArrayConstructorP", UtcDaliPropertyArrayConstructorP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
{"UtcDaliPropertyArrayCopyConstructorP", UtcDaliPropertyArrayCopyConstructorP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
{"UtcDaliPropertyArraySizeP", UtcDaliPropertyArraySizeP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
extern int UtcDaliPropertyMapOperatorAssignmentP3(void);
extern int UtcDaliPropertyMapSquareOperatorP(void);
extern int UtcDaliPropertyMapConstSquareOperatorP(void);
-extern int UtcDaliPropertyMapConstSquareOperatorN(void);
//property-array
extern int UtcDaliPropertyArrayConstructorP(void);
{"UtcDaliPropertyMapOperatorAssignmentP3", UtcDaliPropertyMapOperatorAssignmentP3, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyMapSquareOperatorP", UtcDaliPropertyMapSquareOperatorP, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyMapConstSquareOperatorP", UtcDaliPropertyMapConstSquareOperatorP, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
- {"UtcDaliPropertyMapConstSquareOperatorN", UtcDaliPropertyMapConstSquareOperatorN, utc_Dali_PropertyMap_startup, utc_Dali_PropertyMap_cleanup},
{"UtcDaliPropertyArrayConstructorP", UtcDaliPropertyArrayConstructorP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
{"UtcDaliPropertyArrayCopyConstructorP", UtcDaliPropertyArrayCopyConstructorP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},
{"UtcDaliPropertyArraySizeP", UtcDaliPropertyArraySizeP, utc_Dali_PropertyArray_startup, utc_Dali_PropertyArray_cleanup},