Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions test/features/results/charts/quick_chart_view_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,20 @@ void main() {
await t.pump();
expect('<path '.allMatches(saved!).length, rows.length);
});

for (final width in [600.0, 1600.0]) {
testWidgets('the pie lays out without clipping at ${width.toInt()} px',
(t) async {
await t.binding.setSurfaceSize(material.Size(width, 700));
await t.pumpWidget(queryaThemeTestShell(child: QuickChartView(
columns: columns,
rows: rows,
)));
await t.pump();
await t.tap(find.bySemanticsLabel('Pie'));
await t.pump();
expect(find.byType(PieChart), findsOneWidget);
expect(t.takeException(), isNull);
});
}
}
Loading