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:
parent
e8aa40eddd
commit
1f531595cf
@ -75,7 +75,7 @@ void main() {
|
|||||||
|
|
||||||
testWidgets('Custom padding', (WidgetTester tester) async {
|
testWidgets('Custom padding', (WidgetTester tester) async {
|
||||||
await tester.pumpWidget(boilerplate(child: const CupertinoButton(
|
await tester.pumpWidget(boilerplate(child: const CupertinoButton(
|
||||||
child: const Text(' ', style: testStyle),
|
child: const Text('X', style: testStyle),
|
||||||
onPressed: null,
|
onPressed: null,
|
||||||
padding: const EdgeInsets.all(100.0),
|
padding: const EdgeInsets.all(100.0),
|
||||||
)));
|
)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user