1. 09 Dec, 2016 1 commit
  2. 16 May, 2016 1 commit
    • Ian Hickson's avatar
      Make it possible to run tests live on a device (#3936) · 32527017
      Ian Hickson authored
      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.
      32527017
  3. 09 Apr, 2016 1 commit
  4. 09 Feb, 2016 1 commit
  5. 16 Dec, 2015 1 commit
  6. 14 Dec, 2015 1 commit
  7. 05 Nov, 2015 1 commit
    • Adam Barth's avatar
      Improve hit testing · 9bc64540
      Adam Barth authored
      Now a RenderBox is considered hit if one of its children are hit or it itself
      decides that it's hit. In particular, empty space inside a flex won't be hit
      because none of the children are located there and a RenderFlex doesn't
      consider itself hittable.
      
      Fixes #53
      Fixes #1221
      9bc64540
  8. 10 Oct, 2015 1 commit
  9. 16 Sep, 2015 1 commit
    • Hixie's avatar
      Refactor rendering_tester · cd6c4da3
      Hixie authored
      RenderView has to be a singleton for sanity during tests, otherwise they
      all end up in the dirty lists and we end up pumping all of them each frame.
      cd6c4da3
  10. 26 Aug, 2015 2 commits
  11. 21 Aug, 2015 1 commit