mirror of
https://github.com/flutter/flutter.git
synced 2026-02-12 13:56:40 +08:00
Text test should check that a paragraph's longest line is not greater than the width constraint (#67000)
This commit is contained in:
parent
39a825ede0
commit
e5de2b08b8
@ -943,7 +943,7 @@ void main() {
|
||||
if (method != #drawParagraph)
|
||||
return false;
|
||||
final ui.Paragraph paragraph = arguments[0] as ui.Paragraph;
|
||||
if (paragraph.width > paragraph.longestLine)
|
||||
if (paragraph.longestLine > paragraph.width)
|
||||
throw 'paragraph width (${paragraph.width}) greater than its longest line (${paragraph.longestLine}).';
|
||||
if (paragraph.width >= 400)
|
||||
throw 'paragraph.width (${paragraph.width}) >= 400';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user