Commit 5e8634a6 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

libtxt: make a paragraph selection test handle equivalent libtxt and blink output (#12606)

parent 171b1b08
......@@ -51,7 +51,7 @@ void main() {
test('getBoxesForSelection control test', () {
final RenderParagraph paragraph = new RenderParagraph(
const TextSpan(text: _kText),
const TextSpan(text: _kText, style: const TextStyle(fontSize: 10.0)),
textDirection: TextDirection.ltr,
);
layout(paragraph);
......@@ -66,7 +66,8 @@ void main() {
const TextSelection(baseOffset: 25, extentOffset: 50)
);
expect(boxes.length, equals(3));
expect(boxes.any((ui.TextBox box) => box.left == 250 && box.top == 0), isTrue);
expect(boxes.any((ui.TextBox box) => box.right == 100 && box.top == 10), isTrue);
});
test('getWordBoundary control test', () {
......
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