From: Yoonsang Lee Date: Mon, 29 Jun 2015 09:24:08 +0000 (+0900) Subject: Remove utc-Dali-GlyphImage.cpp X-Git-Tag: dali_1.0.48~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F42484%2F2;p=platform%2Fcore%2Fuifw%2Fdali-core.git Remove utc-Dali-GlyphImage.cpp - This file is not built (not included in CMakeLists.txt) and class GlyphImage even does not exist any more (after merge of new_text) Change-Id: Id7d69b8e9b49df0a2241bec860a533ae60f541ee --- diff --git a/automated-tests/src/dali/utc-Dali-GlyphImage.cpp b/automated-tests/src/dali/utc-Dali-GlyphImage.cpp deleted file mode 100644 index a1f2379..0000000 --- a/automated-tests/src/dali/utc-Dali-GlyphImage.cpp +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright (c) 2014 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include - -#include -#include -#include - -using namespace Dali; - -int UtcDaliGlyphImageNew01(void) -{ - TestApplication application; - - tet_infoline("UtcDaliGlyphImageNew01"); - - GlyphImage image; - - DALI_TEST_CHECK( !image ); - - image = GlyphImage::New( Text( std::string( "H" ) )[0] ); - - DALI_TEST_CHECK( image ); - DALI_TEST_CHECK( application.GetPlatform().WasCalled( TestPlatformAbstraction::GetGlyphImageFunc ) ); - END_TEST; -} - -int UtcDaliGlyphImageNew02(void) -{ - TestApplication application; - - tet_infoline("UtcDaliGlyphImageNew02"); - - GlyphImage image; - - DALI_TEST_CHECK( !image ); - - TextStyle style; - image = GlyphImage::New( Text( std::string( "H" ) )[0], style ); - - DALI_TEST_CHECK( image ); - DALI_TEST_CHECK( application.GetPlatform().WasCalled( TestPlatformAbstraction::GetGlyphImageFunc ) ); - END_TEST; -} - -int UtcDaliGlyphImageDownCast(void) -{ - TestApplication application; - - tet_infoline("UtcDaliGlyphImageDownCast"); - - GlyphImage image = GlyphImage::New( Text( std::string( "H" ) )[0] ); - - DALI_TEST_CHECK( image ); - - BaseHandle object(image); - - GlyphImage image2 = GlyphImage::DownCast(object); - DALI_TEST_CHECK(image2); - - GlyphImage image3 = DownCast< GlyphImage >(object); - DALI_TEST_CHECK(image3); - - BaseHandle unInitializedObject; - GlyphImage image4 = GlyphImage::DownCast(unInitializedObject); - DALI_TEST_CHECK(!image4); - - GlyphImage image5 = DownCast< GlyphImage >(unInitializedObject); - DALI_TEST_CHECK(!image5); - END_TEST; -} - -int UtcDaliGlyphImageIsColorGlyph(void) -{ - TestApplication application; - - tet_infoline("UtcDaliGlyphImageIsColorGlyph"); - - Character character = Text( std::string( "\xf0\x9f\x98\x81" ) )[0]; - - DALI_TEST_CHECK( GlyphImage::IsColorGlyph( character ) ); - END_TEST; -}