Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6db2d03

Browse files
committed
fix test
1 parent d3a38d0 commit 6db2d03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web_ui/test/text/canvas_paragraph_builder_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ void testMain() async {
220220
paragraph.layout(ParagraphConstraints(width: 70.0));
221221
expect(
222222
paragraph.toDomElement().outerHtml,
223-
'<p style="font-size: 13px; $paragraphStyle">'
223+
'<p style="font-size: 13px; $paragraphStyle width: 70px;">'
224224
'<span style="$defaultColor font-size: 13px; font-weight: bold; $defaultFontFamily">'
225225
'Hello'
226226
'</span>'
@@ -349,7 +349,7 @@ void testMain() async {
349349
paragraph.layout(ParagraphConstraints(width: 180.0));
350350
expect(
351351
paragraph.toDomElement().outerHtml,
352-
'<p style="font-size: 13px; $paragraphStyle">'
352+
'<p style="font-size: 13px; $paragraphStyle width: 180px;">'
353353
'<span style="$defaultColor font-size: 13px; $defaultFontFamily">'
354354
'First<br>Second <br>'
355355
'</span>'

0 commit comments

Comments
 (0)