Reverse the sense of the terms snippet and sample. (#48254)

This commit is contained in:
Greg Spencer
2020-01-08 15:28:02 -08:00
committed by Flutter GitHub Bot
parent dbed575c01
commit fabf4e3d0d
156 changed files with 583 additions and 583 deletions

View File

@@ -327,7 +327,7 @@ Matcher coversSameAreaAs(Path expectedPath, { @required Rect areaToCompare, int
/// The master golden image files that are tested against can be created or
/// updated by running `flutter test --update-goldens` on the test.
///
/// {@tool sample}
/// {@tool snippet}
/// Sample invocations of [matchesGoldenFile].
///
/// ```dart

View File

@@ -419,7 +419,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
/// [expectLater] call to test that a widget throws an exception. Instead, use
/// [TestWidgetsFlutterBinding.takeException].
///
/// {@tool sample}
/// {@tool snippet}
/// ```dart
/// testWidgets('MyWidget asserts invalid bounds', (WidgetTester tester) async {
/// await tester.pumpWidget(MyWidget(-1));