diff --git a/packages/flutter/lib/src/material/outline_button.dart b/packages/flutter/lib/src/material/outline_button.dart index 524ad6b414..02bd0845d1 100644 --- a/packages/flutter/lib/src/material/outline_button.dart +++ b/packages/flutter/lib/src/material/outline_button.dart @@ -561,7 +561,7 @@ class _OutlineBorder extends ShapeBorder implements MaterialStateProperty[Offset(60, thickness / 2.0)], + excludes: const [Offset(60, thickness / 3.0)], + )); + }); + testWidgets('OutlineButton contributes semantics', (WidgetTester tester) async { final SemanticsTester semantics = SemanticsTester(tester); await tester.pumpWidget( diff --git a/packages/flutter/test/rendering/mock_canvas.dart b/packages/flutter/test/rendering/mock_canvas.dart index 0cfdfb7eef..7ffcf7a8c1 100644 --- a/packages/flutter/test/rendering/mock_canvas.dart +++ b/packages/flutter/test/rendering/mock_canvas.dart @@ -1163,13 +1163,15 @@ class _PathPaintPredicate extends _DrawCommandPaintPredicate { if (includes != null) { for (final Offset offset in includes) { if (!pathArgument.contains(offset)) - throw 'It called $methodName with a path that unexpectedly did not contain $offset.'; + throw 'It called $methodName with a path that unexpectedly did not ' + 'contain $offset. Path bounds = ${pathArgument.getBounds()}'; } } if (excludes != null) { for (final Offset offset in excludes) { if (pathArgument.contains(offset)) - throw 'It called $methodName with a path that unexpectedly contained $offset.'; + throw 'It called $methodName with a path that unexpectedly ' + 'contained $offset. . Path bounds = ${pathArgument.getBounds()}'; } } }