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:Emil A Eklund <eae@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#593720}
Showing
This diff is collapsed.
Please register or sign in to comment