Commit f40d09e1 authored by gspencergoog's avatar gspencergoog Committed by GitHub

Fixing docs for testWidgets. No functionality change. (#12309)

* Fixing docs for testWidgets.  No functionality change.
parent 944fef45
......@@ -36,13 +36,15 @@ typedef Future<Null> WidgetTesterCallback(WidgetTester widgetTester);
/// provides convenient widget [Finder]s for use with the
/// [WidgetTester].
///
/// Example:
/// ## Sample code
///
/// ```dart
/// testWidgets('MyWidget', (WidgetTester tester) async {
/// await tester.pumpWidget(new MyWidget());
/// await tester.tap(find.text('Save'));
/// expect(tester, hasWidget(find.text('Success')));
/// expect(find.text('Success'), findsOneWidget);
/// });
/// ```
void testWidgets(String description, WidgetTesterCallback callback, {
bool skip: false,
test_package.Timeout timeout
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment