Updates for const->constexpr
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit-internal / utc-Dali-Text-Circular.cpp
index 4c94126..07e642a 100755 (executable)
@@ -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 = "<item 'width'=26 'height'=26 'url'='" + TEST_IMAGE_FILE_NAME1 + "'/>";
@@ -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;
 }