New StaticLayout line break tests
These test exercise the generate() method of StaticLayout which splits
the provided text into lines.
The tests annotated with a "Bug" comment, although they have been changed
to pass should indeed be fixed.
The use of Spans bypasses the custom TextPaint passed to the StaticLayout
and MeasuredText#addStyleRun has to be modified to pass the tests that
add Spans to the text. These tests will be disabled before the commit
to make the test green.
Added a test with 2 spans, with all the possible span combinations.
1 file changed