Skip to content

Commit 324b03a

Browse files
committed
golden test trial run
1 parent a6a7dd1 commit 324b03a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

test/golden_test.dart

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class TestApp extends StatelessWidget {
1414
return MaterialApp(
1515
home: Scaffold(
1616
body: body,
17-
appBar: AppBar(title: Text('flutter_html')),
1817
),
1918
);
2019
}
@@ -60,6 +59,17 @@ void main() {
6059
"""),
6160
),
6261
);
63-
// await expectLater(find.byType(Html), matchesGoldenFile('./goldens/whitespace.png'));
62+
// await expectLater(find.byType(Html), matchesGoldenFile('./goldens/whitespace.png'));
63+
});
64+
65+
testWidgets('whitespace between inline elements golden test', (WidgetTester tester) async {
66+
await tester.pumpWidget(
67+
TestApp(
68+
Html(
69+
data:"""<b>Harry</b> <b>Potter</b>""",
70+
),
71+
),
72+
);
73+
await expectLater(find.byType(Html), matchesGoldenFile('./goldens/whitespace_btwn_inline.png'));
6474
});
6575
}
3.3 KB
Loading

0 commit comments

Comments
 (0)