File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/flutter/test/rendering Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -436,15 +436,15 @@ void main() {
436
436
expect (paragraph.size.width, 78.0 );
437
437
expect (paragraph.size.height, 26.0 );
438
438
439
+ final int length = testSpan.toPlainText ().length;
439
440
// Test the sizes of nested spans.
440
- final String text = testSpan.toStringDeep ();
441
441
final List <ui.TextBox > boxes = < ui.TextBox > [
442
- for (int i = 0 ; i < text. length; ++ i)
442
+ for (int i = 0 ; i < length; ++ i)
443
443
...paragraph.getBoxesForSelection (
444
444
TextSelection (baseOffset: i, extentOffset: i + 1 ),
445
445
),
446
446
];
447
- expect (boxes.length, equals (4 ));
447
+ expect (boxes, hasLength (4 ));
448
448
449
449
expect (boxes[0 ].toRect ().width, 13.0 );
450
450
expect (boxes[0 ].toRect ().height, 13.0 );
You can’t perform that action at this time.
0 commit comments