File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ class TestApp extends StatelessWidget {
14
14
return MaterialApp (
15
15
home: Scaffold (
16
16
body: body,
17
- appBar: AppBar (title: Text ('flutter_html' )),
18
17
),
19
18
);
20
19
}
@@ -60,6 +59,17 @@ void main() {
60
59
""" ),
61
60
),
62
61
);
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' ));
64
74
});
65
75
}
You can’t perform that action at this time.
0 commit comments