Commit dbf7a76b authored by Xiaocheng Hu's avatar Xiaocheng Hu Committed by Commit Bot

Fix hit test locations in RTL HitTestbingBidiTest

In RTL HitTestbingBidiTest test cases, the hit test locations are
wrong. For example:

<div dir=rtl>ABC</div> is rendered as:

+-------------------------+
|                      ABC|
+-------------------------+
^                      ^
|                      |
div->OffsetLeft()      text left edge

The current test cases misuse |div->offsetLeft()| as text left edge,
which is fixed by this patch.

Test expectations are updated by script jsfiddle.net/tLwhcv9u/39/

Bug: 877263
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Change-Id: I4fd1f855a5e97fa9c2ce69c68a1d30036bef652b
Reviewed-on: https://chromium-review.googlesource.com/1240854Reviewed-by: default avatarEmil A Eklund <eae@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593720}
parent 1308b111
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment