Reverse the sense of the terms snippet and sample. (#48254)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
dbed575c01
commit
fabf4e3d0d
@@ -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
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user