Unverified Commit e5de2b08 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Text test should check that a paragraph's longest line is not greater than the...

Text test should check that a paragraph's longest line is not greater than the width constraint (#67000)
parent 39a825ed
......@@ -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';
......
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