X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-internal%2Futc-Dali-Text-Circular.cpp;h=07e642a0a0f9d417374dd86eb5b6594af3dba244;hp=4c94126faa7d21d995535dd5f4af105dc8e799b7;hb=8a647e87a01c5c78451653c1264a9eea81ac9b20;hpb=ff5648f97fac481394ea81164e947f19e2a0e50a diff --git a/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Circular.cpp b/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Circular.cpp index 4c94126..07e642a 100755 --- a/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Circular.cpp +++ b/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Circular.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -185,7 +185,10 @@ int UtcDaliTextCircularBitmapFont(void) Dali::Toolkit::DevelText::BitmapFontDescription description; Dali::Toolkit::DevelText::Glyph glyph; glyph.url = "BitmapFontUrl"; - glyph.utf8 = "BitmapFontUrl"; + glyph.utf8[0u] = 0u; + glyph.utf8[1u] = 0u; + glyph.utf8[2u] = 0u; + glyph.utf8[3u] = 0u; glyph.ascender = 1.f; glyph.descender = 1.f; description.glyphs.push_back( glyph ); @@ -635,9 +638,9 @@ int UtcDaliTextCircularBlend(void) tet_infoline(" UtcDaliTextCircularN"); ToolkitTestApplication application; - Stage stage = Stage::GetCurrent(); - stage.SetBackgroundColor( Color::WHITE ); - stage.SetBackgroundColor( Vector4( 0.04f, 0.345f, 0.392f, 1.0f ) ); + auto scene = application.GetScene(); + scene.SetBackgroundColor( Color::WHITE ); + scene.SetBackgroundColor( Vector4( 0.04f, 0.345f, 0.392f, 1.0f ) ); const std::string image1 = ""; @@ -794,6 +797,10 @@ int UtcDaliTextUpdateBufferFormatCheck(void) Dali::Toolkit::DevelText::UpdateBuffer(srcBuffer, dstBuffer, 0, 0, true); + Devel::PixelBuffer compressedSrcBuffer = Devel::PixelBuffer::New( 10, 10, Pixel::COMPRESSED_R11_EAC ); + Devel::PixelBuffer compressedDstBuffer = Devel::PixelBuffer::New( 10, 10, Pixel::COMPRESSED_R11_EAC ); + Dali::Toolkit::DevelText::UpdateBuffer(compressedSrcBuffer, compressedDstBuffer, 0, 0, true); + tet_result(TET_PASS); END_TEST; }