1. 25 Jan, 2018 1 commit
  2. 20 Dec, 2017 1 commit
  3. 08 Dec, 2017 1 commit
    • Ian Hickson's avatar
      Fix tapping on a test in flutter run (#13397) · d25e0eb0
      Ian Hickson authored
      Also:
      
      * Remove find.byIcon since it's identical to find.icon. (I sent mail to flutter-dev about this.)
      
      * Fix IconData's operator== and hashCode, which had not been updated when we added fields.
      
      * Add the byTooltip finder to the list of suggested finders.
      
      * Make the suggested Key finder prettier.
      d25e0eb0
  4. 07 Dec, 2017 1 commit
  5. 17 Nov, 2017 1 commit
    • Greg Spencer's avatar
      Fix spelling errors in all the dartdocs. (#13061) · 0259be90
      Greg Spencer authored
      I got tired of drive-by spelling fixes, so I figured I'd just take care of them all at once.
      
      This only corrects errors in the dartdocs, not regular comments, and I skipped any sample code in the dartdocs. It doesn't touch any identifiers in the dartdocs either. No code changes, just comments.
      0259be90
  6. 05 Oct, 2017 1 commit
  7. 02 Oct, 2017 1 commit
  8. 11 Sep, 2017 1 commit
    • Yegor's avatar
      only tap on widgets reachable by hit testing (#11767) · ba5b5e7f
      Yegor authored
      * only tap on widgets reachable by hit testing
      
      * use FractionalOffset
      
      * added tests
      
      * check finder finds correct widget
      
      * undo unintentional changes
      
      * address comments
      
      * style fix
      
      * add Directionality in test
      
      * fix analysis warning
      ba5b5e7f
  9. 01 Sep, 2017 1 commit
  10. 06 Jun, 2017 1 commit
  11. 03 May, 2017 1 commit
  12. 02 May, 2017 1 commit
  13. 14 Apr, 2017 1 commit
  14. 11 Apr, 2017 1 commit
    • xster's avatar
      Rename State.config to widget everywhere (#9273) · 89a7fdfc
      xster authored
      Rename State.config to State.widget
      Rename State.didUpdateConfig to State.didUpdateWidget
      Renamed all State subclasses' local variables named config to something else
      89a7fdfc
  15. 04 Mar, 2017 1 commit
  16. 23 Feb, 2017 1 commit
  17. 15 Feb, 2017 1 commit
  18. 07 Feb, 2017 1 commit
    • zhenqiu1101's avatar
      Add find.descendant API to support find descendants of an element by passing... · 47666af5
      zhenqiu1101 authored
      Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant. (#7944)
      
      * Add find.descendant API to support find descendants of an element by passing the current element and the finder of descendant.
      
      * Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant.
      
      * Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant.
      
      * Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant.
      
      * Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant.
      
      * Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant.
      
      * Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant.
      
      * Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant.
      
      * Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant.
      
      * Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant.
      
      * Add find.descendant API to support find descendants of an element by passing the current element finder and the finder of descendant.
      47666af5
  19. 24 Jan, 2017 1 commit
  20. 18 Oct, 2016 1 commit
    • Yegor's avatar
      add description to by-predicate finders (#6362) · 995fcdc9
      Yegor authored
      Add an option to provide a custom description to predicate
      finders. Without a custom description we default to printing the
      predicate function's signature, which is not all that useful.
      
      Use this new option in the driver extension to print the text of the
      sought after tooltip.
      995fcdc9
  21. 03 Oct, 2016 1 commit
  22. 08 Sep, 2016 1 commit
  23. 29 Aug, 2016 1 commit
  24. 25 Jul, 2016 1 commit
  25. 29 Apr, 2016 1 commit
    • Ian Hickson's avatar
      Refactor the test framework (#3622) · 91dd9699
      Ian Hickson authored
      * Refactor widget test framework
      
      Instead of:
      
      ```dart
        test("Card Collection smoke test", () {
          testWidgets((WidgetTester tester) {
      ```
      
      ...you now say:
      
      ```dart
        testWidgets("Card Collection smoke test", (WidgetTester tester) {
      ```
      
      Instead of:
      
      ```dart
        expect(tester, hasWidget(find.text('hello')));
      ```
      
      ...you now say:
      
      ```dart
        expect(find.text('hello'), findsOneWidget);
      ```
      
      Instead of the previous API (exists, widgets, widget, stateOf,
      elementOf, etc), you now have the following comprehensive API. All these
      are functions that take a Finder, except the all* properties.
      
      * `any()` - true if anything matches, c.f. `Iterable.any`
      * `allWidgets` - all the widgets in the tree
      * `widget()` - the one and only widget that matches the finder
      * `firstWidget()` - the first widget that matches the finder
      * `allElements` - all the elements in the tree
      * `element()` - the one and only element that matches the finder
      * `firstElement()` - the first element that matches the finder
      * `allStates` - all the `State`s in the tree
      * `state()` - the one and only state that matches the finder
      * `firstState()` - the first state that matches the finder
      * `allRenderObjects` - all the render objects in the tree
      * `renderObject()` - the one and only render object that matches the finder
      * `firstRenderObject()` - the first render object that matches the finder
      
      There's also `layers' which returns the list of current layers.
      
      `tap`, `fling`, getCenter, getSize, etc, take Finders, like the APIs
      above, and expect there to only be one matching widget.
      
      The finders are:
      
       * `find.text(String text)`
       * `find.widgetWithText(Type widgetType, String text)`
       * `find.byKey(Key key)`
       * `find.byType(Type type)`
       * `find.byElementType(Type type)`
       * `find.byConfig(Widget config)`
       * `find.byWidgetPredicate(WidgetPredicate predicate)`
       * `find.byElementPredicate(ElementPredicate predicate)`
      
      The matchers (for `expect`) are:
      
       * `findsNothing`
       * `findsWidgets`
       * `findsOneWidget`
       * `findsNWidgets(n)`
       * `isOnStage`
       * `isOffStage`
       * `isInCard`
       * `isNotInCard`
      
      Benchmarks now use benchmarkWidgets instead of testWidgets.
      
      Also, for those of you using mockers, `serviceMocker` now automatically
      handles the binding initialization.
      
      This patch also:
      
      * changes how tests are run so that we can more easily swap the logic
        out for a "real" mode instead of FakeAsync.
      
      * introduces CachingIterable.
      
      * changes how flutter_driver interacts with the widget tree to use the
        aforementioned new API rather than ElementTreeTester, which is gone.
      
      * removes ElementTreeTester.
      
      * changes the semantics of a test for scrollables because we couldn't
        convince ourselves that the old semantics made sense; it only worked
        before because flushing the microtasks after every event was broken.
      
      * fixes the flushing of microtasks after every event.
      
      * Reindent the tests
      
      * Fix review comments
      91dd9699