diff --git a/packages/flutter/lib/src/material/outline_button.dart b/packages/flutter/lib/src/material/outline_button.dart index 02bd0845d1f..524ad6b414a 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 7ffcf7a8c18..0cfdfb7eef8 100644 --- a/packages/flutter/test/rendering/mock_canvas.dart +++ b/packages/flutter/test/rendering/mock_canvas.dart @@ -1163,15 +1163,13 @@ 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. Path bounds = ${pathArgument.getBounds()}'; + throw 'It called $methodName with a path that unexpectedly did not contain $offset.'; } } if (excludes != null) { for (final Offset offset in excludes) { if (pathArgument.contains(offset)) - throw 'It called $methodName with a path that unexpectedly ' - 'contained $offset. . Path bounds = ${pathArgument.getBounds()}'; + throw 'It called $methodName with a path that unexpectedly contained $offset.'; } } }