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-Layout.cpp;h=50090ee6123f2724b9dd33ff2ec64513bcff4104;hp=3f6a9a62b64ad58e46f431e6cc563b54137abf41;hb=eac074bfe3a3c144f55583135515d2c8d16eb479;hpb=f090b040537e2a5a60a6dc80009ade9b72d37d4b diff --git a/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Layout.cpp b/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Layout.cpp index 3f6a9a6..50090ee 100644 --- a/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Layout.cpp +++ b/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Layout.cpp @@ -169,7 +169,7 @@ bool LayoutTextTest( const LayoutTextData& data ) visualModel->mCharactersToGlyph.Begin(), visualModel->mGlyphsPerCharacter.Begin(), totalNumberOfGlyphs, - Layout::HORIZONTAL_ALIGN_BEGIN, + Text::HorizontalAlignment::BEGIN, Layout::LineWrap::WORD ); layoutParameters.isLastNewParagraph = isLastNewParagraph; @@ -385,7 +385,7 @@ bool ReLayoutRightToLeftLinesTest( const ReLayoutRightToLeftLinesData& data ) visualModel->mCharactersToGlyph.Begin(), visualModel->mGlyphsPerCharacter.Begin(), visualModel->mGlyphs.Count(), - Layout::HORIZONTAL_ALIGN_BEGIN, + Text::HorizontalAlignment::BEGIN, Layout::LineWrap::WORD ); layoutParameters.numberOfBidirectionalInfoRuns = logicalModel->mBidirectionalLineInfo.Count(); @@ -428,17 +428,17 @@ bool ReLayoutRightToLeftLinesTest( const ReLayoutRightToLeftLinesData& data ) struct AlignData { - std::string description; - std::string text; - Size textArea; - unsigned int numberOfFonts; - FontDescriptionRun* fontDescriptions; - Layout::HorizontalAlignment horizontalAlignment; - Layout::VerticalAlignment verticalAlignment; - unsigned int startIndex; - unsigned int numberOfCharacters; - unsigned int numberOfLines; - float* lineOffsets; + std::string description; + std::string text; + Size textArea; + unsigned int numberOfFonts; + FontDescriptionRun* fontDescriptions; + Text::HorizontalAlignment::Type horizontalAlignment; + Text::VerticalAlignment::Type verticalAlignment; + unsigned int startIndex; + unsigned int numberOfCharacters; + unsigned int numberOfLines; + float* lineOffsets; }; bool AlignTest( const AlignData& data ) @@ -4141,8 +4141,8 @@ int UtcDaliTextAlign01(void) textArea, 6u, fontDescriptionRuns.Begin(), - Layout::HORIZONTAL_ALIGN_BEGIN, - Layout::VERTICAL_ALIGN_TOP, + Text::HorizontalAlignment::BEGIN, + Text::VerticalAlignment::TOP, 0u, 22u, 6u, @@ -4260,8 +4260,8 @@ int UtcDaliTextAlign02(void) textArea, 6u, fontDescriptionRuns.Begin(), - Layout::HORIZONTAL_ALIGN_BEGIN, - Layout::VERTICAL_ALIGN_TOP, + Text::HorizontalAlignment::BEGIN, + Text::VerticalAlignment::TOP, 22u, 26u, 6u, @@ -4379,8 +4379,8 @@ int UtcDaliTextAlign03(void) textArea, 6u, fontDescriptionRuns.Begin(), - Layout::HORIZONTAL_ALIGN_BEGIN, - Layout::VERTICAL_ALIGN_TOP, + Text::HorizontalAlignment::BEGIN, + Text::VerticalAlignment::TOP, 48u, 26u, 6u, @@ -4498,8 +4498,8 @@ int UtcDaliTextAlign04(void) textArea, 6u, fontDescriptionRuns.Begin(), - Layout::HORIZONTAL_ALIGN_CENTER, - Layout::VERTICAL_ALIGN_TOP, + Text::HorizontalAlignment::CENTER, + Text::VerticalAlignment::TOP, 0u, 22u, 6u, @@ -4617,8 +4617,8 @@ int UtcDaliTextAlign05(void) textArea, 6u, fontDescriptionRuns.Begin(), - Layout::HORIZONTAL_ALIGN_CENTER, - Layout::VERTICAL_ALIGN_TOP, + Text::HorizontalAlignment::CENTER, + Text::VerticalAlignment::TOP, 22u, 26u, 6u, @@ -4736,8 +4736,8 @@ int UtcDaliTextAlign06(void) textArea, 6u, fontDescriptionRuns.Begin(), - Layout::HORIZONTAL_ALIGN_CENTER, - Layout::VERTICAL_ALIGN_TOP, + Text::HorizontalAlignment::CENTER, + Text::VerticalAlignment::TOP, 48u, 26u, 6u, @@ -4855,8 +4855,8 @@ int UtcDaliTextAlign07(void) textArea, 6u, fontDescriptionRuns.Begin(), - Layout::HORIZONTAL_ALIGN_END, - Layout::VERTICAL_ALIGN_TOP, + Text::HorizontalAlignment::END, + Text::VerticalAlignment::TOP, 0u, 22u, 6u, @@ -4974,8 +4974,8 @@ int UtcDaliTextAlign08(void) textArea, 6u, fontDescriptionRuns.Begin(), - Layout::HORIZONTAL_ALIGN_END, - Layout::VERTICAL_ALIGN_TOP, + Text::HorizontalAlignment::END, + Text::VerticalAlignment::TOP, 22u, 26u, 6u, @@ -5093,8 +5093,8 @@ int UtcDaliTextAlign09(void) textArea, 6u, fontDescriptionRuns.Begin(), - Layout::HORIZONTAL_ALIGN_END, - Layout::VERTICAL_ALIGN_TOP, + Text::HorizontalAlignment::END, + Text::VerticalAlignment::TOP, 48u, 26u, 6u,