Fix HarfBuzzShaperTest::SafeToBreakMissingRun
This test was added when we found Mac produces rare ShapeResult, by constructing the same run/glyph data artificially. During tweaking the tests, a character was added to runs, but forgot to update the NumCharacters(), which made Start/EndIndexForResult() incorrect. This patch fixes that, and also add CheckConsistency() and two new EXPECT() to ensure the aritificially built ShapeResult is good. Bug: 636993 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: Iea0189f370f9e3d4546f33582f6ad363929511cc Reviewed-on: https://chromium-review.googlesource.com/1100599Reviewed-by:Emil A Eklund <eae@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#567332}
Showing
Please register or sign in to comment