+++ /dev/null
-/*
- * 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 <iostream>
-
-#include <stdlib.h>
-#include <dali/public-api/dali-core.h>
-#include <dali-test-suite-utils.h>
-
-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;
-}