New issue
Advanced search Search tips

Issue 865527 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocked on:
issue 719045



Sign in to add a comment

RenderTextHarfBuzzTest.MoveLeftRightByWordInChineseText doesn't work on Android

Project Member Reported by wychen@chromium.org, Jul 19

Issue description

RenderTextHarfBuzzTest.MoveLeftRightByWordInChineseText doesn't work on Android. The root cause is that Chinese and Japanese tokenization doesn't work on mobile. See issue 719045. Each Chinese character is wrongly tokenized as a word.

We could add one test using a language that's nontrivial to word segmentation, but still work on mobile (one of Thai, Burmese, Lao, and Khmer).

The error message is:

C   19.711s Main  [ RUN      ] RenderTextHarfBuzzTest.MoveLeftRightByWordInChineseText/HarfBuzz
C   19.711s Main  ../../ui/gfx/render_text_unittest.cc:2325: Failure
C   19.711s Main  Expected equality of these values:
C   19.712s Main    2U
C   19.712s Main      Which is: 2
C   19.712s Main    render_text->cursor_position()
C   19.712s Main      Which is: 1
C   19.712s Main  Stack trace:
C   19.712s Main  
C   19.712s Main  ../../ui/gfx/render_text_unittest.cc:2327: Failure
C   19.712s Main  Expected equality of these values:
C   19.712s Main    3U
C   19.712s Main      Which is: 3
C   19.712s Main    render_text->cursor_position()
C   19.712s Main      Which is: 2
C   19.712s Main  Stack trace:
C   19.712s Main  
C   19.713s Main  ../../ui/gfx/render_text_unittest.cc:2329: Failure
C   19.713s Main  Expected equality of these values:
C   19.713s Main    5U
C   19.713s Main      Which is: 5
C   19.713s Main    render_text->cursor_position()
C   19.713s Main      Which is: 3
C   19.713s Main  Stack trace:
C   19.713s Main  
C   19.713s Main  ../../ui/gfx/render_text_unittest.cc:2331: Failure
C   19.713s Main  Expected equality of these values:
C   19.713s Main    6U
C   19.713s Main      Which is: 6
C   19.713s Main    render_text->cursor_position()
C   19.713s Main      Which is: 4
C   19.713s Main  Stack trace:
C   19.714s Main  
C   19.714s Main  ../../ui/gfx/render_text_unittest.cc:2333: Failure
C   19.714s Main  Expected equality of these values:
C   19.714s Main    6U
C   19.714s Main      Which is: 6
C   19.714s Main    render_text->cursor_position()
C   19.714s Main      Which is: 5
C   19.714s Main  Stack trace:
C   19.714s Main  
C   19.714s Main  [  FAILED  ] RenderTextHarfBuzzTest.MoveLeftRightByWordInChineseText/HarfBuzz, where GetParam() = 0 (98 ms)


 
Project Member

Comment 1 by bugdroid1@chromium.org, Jul 24

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/22100358580bd5386491478e2fb72d1ccee1d0b8

commit 22100358580bd5386491478e2fb72d1ccee1d0b8
Author: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Date: Tue Jul 24 02:21:50 2018

Enable render_text_unittest on Android

Some tests are disabled for now.

Bug:  853281 , 865527,  865540 , 865709, 865715
Change-Id: I4fda286ff877301704426820ee10d200cd54468b
Reviewed-on: https://chromium-review.googlesource.com/1144305
Reviewed-by: Michael Wasserman <msw@chromium.org>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577408}
[modify] https://crrev.com/22100358580bd5386491478e2fb72d1ccee1d0b8/ui/gfx/BUILD.gn
[modify] https://crrev.com/22100358580bd5386491478e2fb72d1ccee1d0b8/ui/gfx/render_text_unittest.cc

Project Member

Comment 2 by bugdroid1@chromium.org, Jul 25

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/de04316bbcec8aa177e559c5af3d9316592daabb

commit de04316bbcec8aa177e559c5af3d9316592daabb
Author: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Date: Wed Jul 25 00:40:49 2018

Add RenderTextHarfBuzzTest.MoveLeftRightByWordInThaiText

RenderTextHarfBuzzTest.MoveLeftRightByWordInChineseText doesn't
work on Android because of ICU issues. Use Thai instead to
compensate the testing coverage.

Bug: 865527
Change-Id: I39fb148bc8842716f8f93978bc7cdc0ab7af0f5c
Reviewed-on: https://chromium-review.googlesource.com/1147860
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Reviewed-by: Michael Wasserman <msw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577750}
[modify] https://crrev.com/de04316bbcec8aa177e559c5af3d9316592daabb/ui/gfx/render_text_unittest.cc

Blockedon: 719045
Cc: msw@chromium.org wychen@chromium.org
Owner: ----
Status: Available (was: Assigned)
This is now blocked on issue 719045 (not having CJ word tokenization on mobile). For RenderText unit tests, using Thai should be enough to test the logic here. I'm leaving this open if we have any updates from issue 719045.
Components: UI>GFX

Sign in to add a comment