Use non-whitespace contents in a button padding test (#12568)

libtxt has different policies than Blink for trimming whitespace.  This change
will make the test results consistent in both text renderers.
This commit is contained in:
Jason Simmons 2017-10-17 17:45:11 -07:00 committed by GitHub
parent e8aa40eddd
commit 1f531595cf

View File

@ -75,7 +75,7 @@ void main() {
testWidgets('Custom padding', (WidgetTester tester) async {
await tester.pumpWidget(boilerplate(child: const CupertinoButton(
child: const Text(' ', style: testStyle),
child: const Text('X', style: testStyle),
onPressed: null,
padding: const EdgeInsets.all(100.0),
)));