From 1f531595cf650de6e88e78fe09c222cad02f2623 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Tue, 17 Oct 2017 17:45:11 -0700 Subject: [PATCH] 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. --- packages/flutter/test/cupertino/button_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/test/cupertino/button_test.dart b/packages/flutter/test/cupertino/button_test.dart index 086a248ab3..7926e1d08b 100644 --- a/packages/flutter/test/cupertino/button_test.dart +++ b/packages/flutter/test/cupertino/button_test.dart @@ -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), )));