From 8238caa0da1b53f7a54274b65e772c2b2a49eb35 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Thu, 14 Sep 2023 18:16:24 +0900 Subject: [PATCH] Update expected value of UtcDaliGetMirroredText The text direction determination logic has been changed, https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/298855/ so the result of GetMirroredText() may different from the previous one, especially when dealing with mixed LTR + RTL text. (and particulary when brackets are involved) Update the TC with the coreect values. Change-Id: I678211880250035caea4d6142e69fd427268b1ff Signed-off-by: Bowon Ryu --- .../src/dali-toolkit-internal/utc-Dali-BidirectionalSupport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated-tests/src/dali-toolkit-internal/utc-Dali-BidirectionalSupport.cpp b/automated-tests/src/dali-toolkit-internal/utc-Dali-BidirectionalSupport.cpp index a20c4bb..4f6e20c 100644 --- a/automated-tests/src/dali-toolkit-internal/utc-Dali-BidirectionalSupport.cpp +++ b/automated-tests/src/dali-toolkit-internal/utc-Dali-BidirectionalSupport.cpp @@ -505,8 +505,8 @@ int UtcDaliGetMirroredText(void) " مرحبا بالعالم שלום עולם hello world hello world\nبالعالم שלום (hello) world demo (עולם)\nשלום (مرحبا بالعالم עולם) (hello)", 0u, 239u, - "Hello world demo\nhello world\nhello world (مرحبا بالعالم שלום( עולם\nשלום مرحبا بالعالم עולם )hello( مرحبا بالعالم world" - " مرحبا بالعالم שלום עולם hello world hello world\nبالعالم שלום )hello) world demo )עולם(\nשלום )مرحبا بالعالم עולם( )hello("}, + "Hello world demo\nhello world\nhello world (مرحبا بالعالم שלום) עולם\nשלום مرحبا بالعالم עולם )hello( مرحبا بالعالم world" + " مرحبا بالعالم שלום עולם hello world hello world\nبالعالم שלום )hello( world demo )עולם(\nשלום )مرحبا بالعالم עולם( )hello("}, {"Mix of bidirectional text. With more paragraphs. Update middle paragraphs.", "Hello world demo\nhello world\nhello world (مرحبا بالعالم שלום) עולם\nשלום مرحبا بالعالم עולם (hello) مرحبا بالعالم world" -- 2.7.4