dali-toolkit
)
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -ggdb --coverage -Wall -Werror=return-type")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -ggdb --coverage -Wall -Werror")
FOREACH(directory ${${CAPI_LIB}_LIBRARY_DIRS})
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L${directory}")
Vector<ScriptRun> scriptRuns01;
ScriptRun scriptRun0100 =
{
- 0u,
- 11u,
+ {
+ 0u,
+ 11u,
+ },
TextAbstraction::LATIN
};
scriptRuns01.PushBack( scriptRun0100 );
Vector<ScriptRun> scriptRuns02;
ScriptRun scriptRun0200 =
{
- 0u,
- 12u,
+ {
+ 0u,
+ 12u,
+ },
TextAbstraction::LATIN
};
ScriptRun scriptRun0201 =
{
- 12u,
- 13u,
+ {
+ 12u,
+ 13u,
+ },
TextAbstraction::ARABIC
};
scriptRuns02.PushBack( scriptRun0200 );
Vector<ScriptRun> scriptRuns03;
ScriptRun scriptRun0300 =
{
- 0u,
- 14u,
+ {
+ 0u,
+ 14u,
+ },
TextAbstraction::ARABIC
};
ScriptRun scriptRun0301 =
{
- 14u,
- 11u,
+ {
+ 14u,
+ 11u,
+ },
TextAbstraction::LATIN
};
scriptRuns03.PushBack( scriptRun0300 );
Vector<ScriptRun> scriptRuns04;
ScriptRun scriptRun0400 =
{
- 0u,
- 16u,
+ {
+ 0u,
+ 16u,
+ },
TextAbstraction::LATIN
};
scriptRuns04.PushBack( scriptRun0400 );
Vector<ScriptRun> scriptRuns05;
ScriptRun scriptRun0500 =
{
- 0u,
- 16u,
+ {
+ 0u,
+ 16u,
+ },
TextAbstraction::LATIN
};
scriptRuns05.PushBack( scriptRun0500 );
Vector<ScriptRun> scriptRuns06;
ScriptRun scriptRun0600 =
{
- 0u,
- 16u,
+ {
+ 0u,
+ 16u,
+ },
TextAbstraction::LATIN
};
scriptRuns06.PushBack( scriptRun0600 );
Vector<ScriptRun> scriptRuns07;
ScriptRun scriptRun0700 =
{
- 0u,
- 8u,
+ {
+ 0u,
+ 8u,
+ },
TextAbstraction::LATIN
};
ScriptRun scriptRun0701 =
{
- 8u,
- 5u,
+ {
+ 8u,
+ 5u,
+ },
TextAbstraction::HANGUL
};
scriptRuns07.PushBack( scriptRun0700 );
Vector<ScriptRun> scriptRuns08;
ScriptRun scriptRun0800 =
{
- 0u,
- 18u,
+ {
+ 0u,
+ 18u,
+ },
TextAbstraction::LATIN
};
ScriptRun scriptRun0801 =
{
- 18u,
- 14u,
+ {
+ 18u,
+ 14u,
+ },
TextAbstraction::ARABIC
};
ScriptRun scriptRun0802 =
{
- 32u,
- 18u,
+ {
+ 32u,
+ 18u,
+ },
TextAbstraction::HANGUL
};
scriptRuns08.PushBack( scriptRun0800 );
Vector<ScriptRun> scriptRuns09;
ScriptRun scriptRun0900 =
{
- 0u,
- 21u,
+ {
+ 0u,
+ 21u,
+ },
TextAbstraction::ARABIC
};
ScriptRun scriptRun0901 =
{
- 21u,
- 16u,
+ {
+ 21u,
+ 16u,
+ },
TextAbstraction::LATIN
};
ScriptRun scriptRun0902 =
{
- 37u,
- 10u,
+ {
+ 37u,
+ 10u,
+ },
TextAbstraction::HANGUL
};
ScriptRun scriptRun0903 =
{
- 47u,
- 20u,
+ {
+ 47u,
+ 20u,
+ },
TextAbstraction::ARABIC
};
scriptRuns09.PushBack( scriptRun0900 );
Vector<ScriptRun> scriptRuns10;
ScriptRun scriptRun1000 =
{
- 0u,
- 20u,
+ {
+ 0u,
+ 20u,
+ },
TextAbstraction::ARABIC
};
ScriptRun scriptRun1001 =
{
- 20u,
- 12u,
+ {
+ 20u,
+ 12u,
+ },
TextAbstraction::HEBREW
};
ScriptRun scriptRun1002 =
{
- 32u,
- 17u,
+ {
+ 32u,
+ 17u,
+ },
TextAbstraction::ARABIC
};
ScriptRun scriptRun1003 =
{
- 49u,
- 18u,
+ {
+ 49u,
+ 18u,
+ },
TextAbstraction::LATIN
};
ScriptRun scriptRun1004 =
{
- 67u,
- 14u,
+ {
+ 67u,
+ 14u,
+ },
TextAbstraction::HANGUL
};
ScriptRun scriptRun1005 =
{
- 81u,
- 19u,
+ {
+ 81u,
+ 19u,
+ },
TextAbstraction::ARABIC
};
ScriptRun scriptRun1006 =
{
- 100u,
- 13u,
+ {
+ 100u,
+ 13u,
+ },
TextAbstraction::LATIN
};
ScriptRun scriptRun1007 =
{
- 113u,
- 16u,
+ {
+ 113u,
+ 16u,
+ },
TextAbstraction::HEBREW
};
ScriptRun scriptRun1008 =
{
- 129u,
- 20u,
+ {
+ 129u,
+ 20u,
+ },
TextAbstraction::LATIN
};
ScriptRun scriptRun1009 =
{
- 149u,
- 14u,
+ {
+ 149u,
+ 14u,
+ },
TextAbstraction::ARABIC
};
ScriptRun scriptRun1010 =
{
- 163u,
- 35u,
+ {
+ 163u,
+ 35u,
+ },
TextAbstraction::HANGUL
};
scriptRuns10.PushBack( scriptRun1000 );
Vector<ScriptRun> scriptRuns11;
ScriptRun scriptRun1100 =
{
- 0u,
- 31u,
+ {
+ 0u,
+ 31u,
+ },
TextAbstraction::LATIN
};
ScriptRun scriptRun1101 =
{
- 31u,
- 21u,
+ {
+ 31u,
+ 21u,
+ },
TextAbstraction::HEBREW
};
scriptRuns11.PushBack( scriptRun1100 );
Vector<ScriptRun> scriptRuns12;
ScriptRun scriptRun1200 =
{
- 0u,
- 11u,
+ {
+ 0u,
+ 11u,
+ },
TextAbstraction::LATIN
};
scriptRuns12.PushBack( scriptRun1200 );
dali-toolkit
)
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -ggdb --coverage -Wall -Werror=return-type")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -ggdb --coverage -Wall -Werror")
ADD_DEFINITIONS(-DTEST_RESOURCE_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/../../resources\" )
* limitations under the License.
*
*/
+
// CLASS HEADER
#include "dali-test-suite-utils.h"
va_end(arg);
}
-/**
- * DALI_TEST_CHECK is a wrapper for tet_result.
- * If the condition evaluates to false, then the function & line number is printed.
- * @param[in] The boolean expression to check
- */
-#define DALI_TEST_CHECK(condition) \
-if ( (condition) ) \
-{ \
- tet_result(TET_PASS); \
-} \
-else \
-{ \
- fprintf(stderr, "%s Failed in %s at line %d\n", __PRETTY_FUNCTION__, __FILE__, __LINE__); \
- tet_result(TET_FAIL); \
-}
-
bool operator==(TimePeriod a, TimePeriod b)
{
return Equals(a.durationSeconds, b.durationSeconds) && Equals(a.delaySeconds, b.delaySeconds) ;
}
-std::ostream& operator<< (std::ostream& ostream, const TimePeriod value)
+std::ostream& operator<<( std::ostream& ostream, TimePeriod value )
{
return ostream << "( Duration:" << value.durationSeconds << " Delay:" << value.delaySeconds << ")";
}
return ostream;
}
+void DALI_TEST_EQUALS( const BaseHandle& baseHandle1, const BaseHandle& baseHandle2, const char* location )
+{
+ DALI_TEST_EQUALS< const BaseHandle& >( baseHandle1, baseHandle2, location );
+}
+
+void DALI_TEST_EQUALS( const size_t value1, const unsigned int value2, const char* location )
+{
+ DALI_TEST_EQUALS< unsigned int>( ( unsigned int )( value1 ), value2, location );
+}
+
+void DALI_TEST_EQUALS( const unsigned int value1, const size_t value2, const char* location )
+{
+ DALI_TEST_EQUALS< unsigned int >( value1, ( unsigned int )( value2 ), location );
+}
+
void DALI_TEST_EQUALS( const Matrix3& matrix1, const Matrix3& matrix2, const char* location)
{
const float* m1 = matrix1.AsFloat();
for (int i=0;i<9;++i)
{
- equivalent &= (m1[i] != m2[i]);
+ if( ! (fabsf(m1[i] - m2[i])< GetRangedEpsilon(m1[i], m2[i])) )
+ {
+ equivalent = false;
+ }
}
- if (!equivalent)
+ if( !equivalent )
{
fprintf(stderr, "%s, checking\n"
"(%f, %f, %f) (%f, %f, %f)\n"
DALI_TEST_EQUALS(str1, str2.c_str(), location);
}
-
-/**
- * Test whether one unsigned integer value is greater than another.
- * Test succeeds if value1 > value2
- * @param[in] value1 The first value
- * @param[in] value2 The second value
- * @param[in] location The TEST_LOCATION macro should be used here
- */
-void DALI_TEST_GREATER(unsigned int value1, unsigned int value2, const char* location)
-{
- if (!(value1 > value2))
- {
- fprintf(stderr, "%s, checking %d > %d\n", location, value1, value2);
- tet_result(TET_FAIL);
- }
- else
- {
- tet_result(TET_PASS);
- }
-}
-
-/**
- * Test whether one float value is greater than another.
- * Test succeeds if value1 > value2
- * @param[in] value1 The first value
- * @param[in] value2 The second value
- * @param[in] location The TEST_LOCATION macro should be used here
- */
-void DALI_TEST_GREATER( float value1, float value2, const char* location)
-{
- if (!(value1 > value2))
- {
- fprintf(stderr, "%s, checking %f > %f\n", location, value1, value2);
- tet_result(TET_FAIL);
- }
- else
- {
- tet_result(TET_PASS);
- }
-}
-
void DALI_TEST_ASSERT( DaliException& e, std::string conditionSubString, const char* location )
{
if( NULL == strstr( e.condition, conditionSubString.c_str() ) )
// EXTERNAL INCLUDES
#include <cstdarg>
-#include <iosfwd>
+#include <iostream>
// INTERNAL INCLUDES
#include <dali/public-api/dali-core.h>
-#include <stdarg.h>
void tet_infoline(const char*str);
void tet_printf(const char *format, ...);
/**
* DALI_TEST_CHECK is a wrapper for tet_result.
- * If the condition evaluates to false, then the function & line number is printed.
+ * If the condition evaluates to false, the test is stopped.
* @param[in] The boolean expression to check
*/
#define DALI_TEST_CHECK(condition) \
{ \
fprintf(stderr, "%s Failed in %s at line %d\n", __PRETTY_FUNCTION__, __FILE__, __LINE__); \
tet_result(TET_FAIL); \
+ throw("TET_FAIL"); \
}
template <typename Type>
* @param[in] value2 The second value
* @param[in] location The TEST_LOCATION macro should be used here
*/
-template<typename TypeA, typename TypeB>
-inline void DALI_TEST_EQUALS(TypeA value1, TypeB value2, const char* location)
+template<typename Type>
+inline void DALI_TEST_EQUALS(Type value1, Type value2, const char* location)
{
if (!(value1 == value2))
{
}
/**
+ * Test whether two base handles are equal.
+ * @param[in] baseHandle1 The first value
+ * @param[in] baseHandle2 The second value
+ * @param[in] location The TEST_LOCATION macro should be used here
+ */
+void DALI_TEST_EQUALS( const BaseHandle& baseHandle1, const BaseHandle& baseHandle2, const char* location );
+
+/**
+ * Test whether a size_t value and an unsigned int are equal.
+ * @param[in] value1 The first value
+ * @param[in] value2 The second value
+ * @param[in] location The TEST_LOCATION macro should be used here
+ */
+void DALI_TEST_EQUALS( const size_t value1, const unsigned int value2, const char* location );
+
+/**
+ * Test whether an unsigned int and a size_t value and are equal.
+ * @param[in] value1 The first value
+ * @param[in] value2 The second value
+ * @param[in] location The TEST_LOCATION macro should be used here
+ */
+void DALI_TEST_EQUALS( const unsigned int value1, const size_t value2, const char* location );
+
+/**
* Test whether two Matrix3 objects are equal.
* @param[in] matrix1 The first object
* @param[in] matrix2 The second object
* @param[in] value2 The second value
* @param[in] location The TEST_LOCATION macro should be used here
*/
-void DALI_TEST_GREATER(unsigned int value1, unsigned int value2, const char* location);
-
-/**
- * Test whether one float value is greater than another.
- * Test succeeds if value1 > value2
- * @param[in] value1 The first value
- * @param[in] value2 The second value
- * @param[in] location The TEST_LOCATION macro should be used here
- */
-void DALI_TEST_GREATER( float value1, float value2, const char* location);
+template< typename T >
+void DALI_TEST_GREATER( T value1, T value2, const char* location)
+{
+ if (!(value1 > value2))
+ {
+ std::cerr << location << ", checking " << value1 <<" > " << value2 << "\n";
+ tet_result(TET_FAIL);
+ }
+ else
+ {
+ tet_result(TET_PASS);
+ }
+}
/**
* Test whether the assertion condition that failed and thus triggered the
};
-// Helper to Create bitmap image
+// Helper to Create buffer image
BufferImage CreateBufferImage();
BufferImage CreateBufferImage(int width, int height, const Vector4& color);
-
#endif // __DALI_TEST_SUITE_UTILS_H__
{
std::stringstream out;
out << cap;
- mCullFaceTrace.PushCall("Disable", out.str());
+ mEnableDisableTrace.PushCall("Disable", out.str());
}
inline void DisableVertexAttribArray(GLuint index)
{
std::stringstream out;
out << cap;
- mCullFaceTrace.PushCall("Enable", out.str());
+ mEnableDisableTrace.PushCall("Enable", out.str());
}
inline void EnableVertexAttribArray(GLuint index)
inline void ResetCullFaceCallStack() { mCullFaceTrace.Reset(); }
inline TraceCallStack& GetCullFaceTrace() { return mCullFaceTrace; }
+ //Methods for Enable/Disable call verification
+ inline void EnableEnableDisableCallTrace(bool enable) { mEnableDisableTrace.Enable(enable); }
+ inline void ResetEnableDisableCallStack() { mEnableDisableTrace.Reset(); }
+ inline TraceCallStack& GetEnableDisableTrace() { return mEnableDisableTrace; }
+
//Methods for Shader verification
inline void EnableShaderCallTrace(bool enable) { mShaderTrace.Enable(enable); }
inline void ResetShaderCallStack() { mShaderTrace.Reset(); }
return false;
}
-
-
inline GLuint GetLastShaderCompiled() const
{
return mLastShaderCompiled;
ActiveTextureType mActiveTextures[ MIN_TEXTURE_UNIT_LIMIT ];
TraceCallStack mCullFaceTrace;
+ TraceCallStack mEnableDisableTrace;
TraceCallStack mShaderTrace;
TraceCallStack mTextureTrace;
TraceCallStack mTexParamaterTrace;
}
TestNativeImage::TestNativeImage(int width, int height)
-: mWidth(width), mHeight(height)
+: mWidth(width), mHeight(height), mExtensionCreateCalls(0), mExtensionDestroyCalls(0), mTargetTextureCalls(0)
{
}
*/
// INTERNAL INCLUDES
-#include <dali/public-api/images/native-image.h>
+#include <dali/public-api/images/native-image-interface.h>
namespace Dali
{
class TestNativeImage;
typedef IntrusivePtr<TestNativeImage> TestNativeImagePointer;
-class DALI_IMPORT_API TestNativeImage : public Dali::NativeImage
+class DALI_IMPORT_API TestNativeImage : public Dali::NativeImageInterface
{
public:
static TestNativeImagePointer New(int width, int height);
- inline virtual bool GlExtensionCreate() {return true;};
- inline virtual void GlExtensionDestroy() {};
- inline virtual GLenum TargetTexture() {return 1;};
+ inline virtual bool GlExtensionCreate() { ++mExtensionCreateCalls; return true;};
+ inline virtual void GlExtensionDestroy() { ++mExtensionDestroyCalls; };
+ inline virtual GLenum TargetTexture() { ++mTargetTextureCalls; return 1;};
inline virtual void PrepareTexture() {};
inline virtual unsigned int GetWidth() const {return mWidth;};
inline virtual unsigned int GetHeight() const {return mHeight;};
- inline virtual Pixel::Format GetPixelFormat() const {return Pixel::RGBA8888;};
+ inline virtual bool RequiresBlending() const {return true;};
private:
TestNativeImage(int width, int height);
int mWidth;
int mHeight;
+public:
+ int mExtensionCreateCalls;
+ int mExtensionDestroyCalls;
+ int mTargetTextureCalls;
};
} // Dali
receivedTouch.points.clear();
receivedTouch.time = 0;
- touchActor = NULL;
+ touchActor.Reset();
}
bool functorCalled;
#include <cstddef>
#include <semaphore.h>
#include <math.h>
+#include <climits>
namespace Dali
{
{
mImpl->callback = callback;
mImpl->triggeredCount = 0u;
- mImpl->expectedCount = INFINITY;
+ mImpl->expectedCount = UINT_MAX;
sem_init( &(mImpl->mySemaphore), 0, 0 );
gEventThreadCallback = this;
}
test_return_value = TET_PASS;
}
-
namespace
{
+/// Compare an int (Or'd Alignment::Type) with an Alignment::Type value
+void DALI_TEST_EQUALS( int value1, Alignment::Type value2, const char* location )
+{
+ ::DALI_TEST_EQUALS< Alignment::Type >( static_cast< Alignment::Type >( value1 ), value2, location );
+}
+
static bool gObjectCreatedCallBackCalled;
static void TestCallback(BaseHandle handle)
Stage::GetCurrent().Add( actor );
controlRenderer.SetOnStage( actor );
- DALI_TEST_EQUALS( actor.GetRendererAt(0u).GetDepthIndex(), 1.f, TEST_LOCATION );
+ DALI_TEST_EQUALS( actor.GetRendererAt(0u).GetDepthIndex(), 1, TEST_LOCATION );
DALI_TEST_EQUALS( controlRenderer.GetDepthIndex(), 1.f, TEST_LOCATION );
controlRenderer.SetDepthIndex( -1.f );
- DALI_TEST_EQUALS( actor.GetRendererAt(0u).GetDepthIndex(), -1.f, TEST_LOCATION );
+ DALI_TEST_EQUALS( actor.GetRendererAt(0u).GetDepthIndex(), -1, TEST_LOCATION );
DALI_TEST_EQUALS( controlRenderer.GetDepthIndex(), -1.f, TEST_LOCATION );
END_TEST;
atlas.Upload( textureRect, gImageNonExist );
Rect<int> pixelArea = TextureCoordinateToPixelArea(textureRect, size);
- DALI_TEST_EQUALS( pixelArea.width, 34.f, TEST_LOCATION );
- DALI_TEST_EQUALS( pixelArea.height, 34.f, TEST_LOCATION );
+ DALI_TEST_EQUALS( pixelArea.width, 34, TEST_LOCATION );
+ DALI_TEST_EQUALS( pixelArea.height, 34, TEST_LOCATION );
END_TEST;
}
// one pixel gap
Rect<int> pixelArea = TextureCoordinateToPixelArea(textureRect2, size);
- DALI_TEST_EQUALS( pixelArea.x, 0.f, TEST_LOCATION );
- DALI_TEST_EQUALS( pixelArea.y, 0.f, TEST_LOCATION );
+ DALI_TEST_EQUALS( pixelArea.x, 0, TEST_LOCATION );
+ DALI_TEST_EQUALS( pixelArea.y, 0, TEST_LOCATION );
END_TEST;
}
int width = 0;
DALI_TEST_CHECK( map[ "width" ].Get( width ) );
- DALI_TEST_EQUALS( width, image.GetWidth(), TEST_LOCATION );
+ DALI_TEST_EQUALS( (unsigned int)width, image.GetWidth(), TEST_LOCATION );
int height = 0;
DALI_TEST_CHECK( map[ "height" ].Get( height ) );
- DALI_TEST_EQUALS( height, image.GetHeight(), TEST_LOCATION );
+ DALI_TEST_EQUALS( (unsigned int)height, image.GetHeight(), TEST_LOCATION );
std::string type;
DALI_TEST_CHECK( map[ "type" ].Get( type ) );
{
int width = 0;
DALI_TEST_CHECK( map[ "width" ].Get( width ) );
- DALI_TEST_EQUALS( width, image.GetWidth(), TEST_LOCATION );
+ DALI_TEST_EQUALS( (unsigned int)width, image.GetWidth(), TEST_LOCATION );
}
if( map.Find( "height" ) )
{
int height = 0;
DALI_TEST_CHECK( map[ "height" ].Get( height ) );
- DALI_TEST_EQUALS( height, image.GetHeight(), TEST_LOCATION );
+ DALI_TEST_EQUALS( (unsigned int)height, image.GetHeight(), TEST_LOCATION );
}
DALI_TEST_CHECK( map.Find( "type" ) );
ImageView imageView = ImageView::New();
Property::Index idx = imageView.GetPropertyIndex( "image" );
- DALI_TEST_EQUALS( idx, ImageView::Property::IMAGE, TEST_LOCATION );
+ DALI_TEST_EQUALS( idx, (Property::Index)ImageView::Property::IMAGE, TEST_LOCATION );
imageView.SetProperty( idx, TEST_IMAGE_FILE_NAME );
TestUrl( imageView, TEST_IMAGE_FILE_NAME );
application.SendNotification();
application.Render();
- DALI_TEST_EQUALS( imageView.GetCurrentSize().width, width, TEST_LOCATION );
- DALI_TEST_EQUALS( imageView.GetCurrentSize().height, height, TEST_LOCATION );
+ DALI_TEST_EQUALS( imageView.GetCurrentSize().width, (float)width, TEST_LOCATION );
+ DALI_TEST_EQUALS( imageView.GetCurrentSize().height, (float)height, TEST_LOCATION );
END_TEST;
}
application.SendNotification();
application.Render();
- DALI_TEST_EQUALS( imageView.GetCurrentSize().width, width, TEST_LOCATION );
- DALI_TEST_EQUALS( imageView.GetCurrentSize().height, height, TEST_LOCATION );
+ DALI_TEST_EQUALS( imageView.GetCurrentSize().width, (float)width, TEST_LOCATION );
+ DALI_TEST_EQUALS( imageView.GetCurrentSize().height, (float)height, TEST_LOCATION );
END_TEST;
}
application.SendNotification();
application.Render();
- DALI_TEST_EQUALS( imageView.GetHeightForWidth( width ), height, TEST_LOCATION );
- DALI_TEST_EQUALS( imageView.GetWidthForHeight( height ), width, TEST_LOCATION );
+ DALI_TEST_EQUALS( imageView.GetHeightForWidth( width ), (float)height, TEST_LOCATION );
+ DALI_TEST_EQUALS( imageView.GetWidthForHeight( height ), (float)width, TEST_LOCATION );
END_TEST;
}
Wait(application, 1000);
DALI_TEST_CHECK( callbackTurnFinished.mSignalVerified );
// the page is turned over
- DALI_TEST_EQUALS( portraitView.GetProperty(PageTurnView::Property::CURRENT_PAGE_ID).Get<int>(), pageIndex+1, TEST_LOCATION );
+ DALI_TEST_EQUALS( portraitView.GetProperty(PageTurnView::Property::CURRENT_PAGE_ID).Get<int>(), (int)(pageIndex+1), TEST_LOCATION );
//---Test 2: pan from position( size*0.5f ) to position( size.width, size.height*0.5f ) to position( size * 0.75f ), page 1 will bent then slid back---
callbackTurnStarted.Reset();
Wait(application, 1000);
DALI_TEST_CHECK( callbackTurnFinished.mSignalVerified );
- DALI_TEST_EQUALS( portraitView.GetProperty(PageTurnView::Property::CURRENT_PAGE_ID).Get<int>(), pageIndex, TEST_LOCATION ); // the page is not turned over
+ DALI_TEST_EQUALS( portraitView.GetProperty(PageTurnView::Property::CURRENT_PAGE_ID).Get<int>(), (int)pageIndex, TEST_LOCATION ); // the page is not turned over
// ----Test 3: pan 10 frames from position( size*0.25f ) to position( size.width*0.75f, size.height*0.25f ), the previous page will be turned backwards---
callbackTurnStarted.Reset();
Wait(application, 1000);
DALI_TEST_CHECK( callbackTurnFinished.mSignalVerified );
// the page is turned over
- DALI_TEST_EQUALS( landscapeView.GetProperty(PageTurnView::Property::CURRENT_PAGE_ID).Get<int>(), pageIndex+1, TEST_LOCATION );
+ DALI_TEST_EQUALS( landscapeView.GetProperty(PageTurnView::Property::CURRENT_PAGE_ID).Get<int>(), (int)(pageIndex+1), TEST_LOCATION );
//---Test 2: pan from position(stageSize.x * 0.15f, stageSize.y*0.5) to position(stageSize.x * 0.45f, stageSize.y*0.5) page 4 will be turned back---
callbackTurnStarted.Reset();
Property::Map resultMap;
DALI_TEST_CHECK( popup.GetProperty( Toolkit::Popup::Property::ENTRY_ANIMATION ).Get( resultMap ) );
- DALI_TEST_EQUALS( resultMap.Count(), 0, TEST_LOCATION );
+ DALI_TEST_EQUALS( resultMap.Count(), 0u, TEST_LOCATION );
DALI_TEST_CHECK( popup.GetProperty( Toolkit::Popup::Property::EXIT_ANIMATION ).Get( resultMap ) );
- DALI_TEST_EQUALS( resultMap.Count(), 0, TEST_LOCATION );
+ DALI_TEST_EQUALS( resultMap.Count(), 0u, TEST_LOCATION );
Stage::GetCurrent().Add( popup );
popup.SetDisplayState( Popup::SHOWN );
// Check the render backend property.
field.SetProperty( TextField::Property::RENDERING_BACKEND, Text::RENDERING_SHARED_ATLAS );
- DALI_TEST_EQUALS( field.GetProperty<int>( TextField::Property::RENDERING_BACKEND ), Text::RENDERING_SHARED_ATLAS, TEST_LOCATION );
+ DALI_TEST_EQUALS( (Text::RenderingType)field.GetProperty<int>( TextField::Property::RENDERING_BACKEND ), Text::RENDERING_SHARED_ATLAS, TEST_LOCATION );
// Check text property.
field.SetProperty( TextField::Property::TEXT, "Setting Text" );
// Note - we can't check the defaults since the stylesheets are platform-specific
label.SetProperty( TextLabel::Property::RENDERING_BACKEND, Text::RENDERING_SHARED_ATLAS );
- DALI_TEST_EQUALS( label.GetProperty<int>( TextLabel::Property::RENDERING_BACKEND ), Text::RENDERING_SHARED_ATLAS, TEST_LOCATION );
+ DALI_TEST_EQUALS( (Text::RenderingType)label.GetProperty<int>( TextLabel::Property::RENDERING_BACKEND ), Text::RENDERING_SHARED_ATLAS, TEST_LOCATION );
// Check that text can be correctly reset
label.SetProperty( TextLabel::Property::TEXT, "Setting Text" );