flutter/examples/flutter_gallery/lib/demo
Ian Hickson 3252701753 Make it possible to run tests live on a device (#3936)
This makes it possible to substitute 'flutter run' for 'flutter test'
and actually watch a test run on a device.

For any test that depends on flutter_test:

1. Remove any import of 'package:test/test.dart'.

2. Replace `testWidgets('...', (WidgetTester tester) {`
      with `testWidgets('...', (WidgetTester tester) async {`

3. Add an "await" in front of calls to any of the following:
    * tap()
    * tapAt()
    * fling()
    * flingFrom()
    * scroll()
    * scrollAt()
    * pump()
    * pumpWidget()

4. Replace any calls to `tester.flushMicrotasks()` with calls to
   `await tester.idle()`.

There's a guarding API that you can use, if you have particularly
complicated tests, to get better error messages. Search for
TestAsyncUtils.
2016-05-16 12:53:13 -07:00
..
all.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
buttons_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
cards_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
chip_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
colors_demo.dart Revert "Rename DefaultTextStyle constructor to explicit (#3920)" (#3930) 2016-05-16 11:08:07 -07:00
data_table_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
date_picker_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
dialog_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
drawing_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
drop_down_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
fail.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
fitness_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
flexible_space_demo.dart Revert "Rename DefaultTextStyle constructor to explicit (#3920)" (#3930) 2016-05-16 11:08:07 -07:00
full_screen_dialog_demo.dart Revert "Rename DefaultTextStyle constructor to explicit (#3920)" (#3930) 2016-05-16 11:08:07 -07:00
grid_list_demo.dart GridTileBar uses ellipsis, etc (#3881) 2016-05-12 12:27:49 -07:00
icons_demo.dart GridTileBar uses ellipsis, etc (#3881) 2016-05-12 12:27:49 -07:00
leave_behind_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
list_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
menu_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
modal_bottom_sheet_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
overscroll_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
page_selector_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
persistent_bottom_sheet_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
progress_indicator_demo.dart Revert "Rename DefaultTextStyle constructor to explicit (#3920)" (#3930) 2016-05-16 11:08:07 -07:00
scrollable_tabs_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
scrolling_techniques_demo.dart Revert "Rename DefaultTextStyle constructor to explicit (#3920)" (#3930) 2016-05-16 11:08:07 -07:00
selection_controls_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
slider_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
snack_bar_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
tabs_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
tabs_fab_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
text_field_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
time_picker_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
tooltip_demo.dart GridTileBar uses ellipsis, etc (#3881) 2016-05-12 12:27:49 -07:00
two_level_list_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
typography_demo.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
weather_demo.dart Make it possible to run tests live on a device (#3936) 2016-05-16 12:53:13 -07:00