1. 07 May, 2018 1 commit
    • Todd Volkert's avatar
      Golden file fixes (#17299) · 52e46056
      Todd Volkert authored
      1. Make goldenFileComparator getter return `null` if it's set to the
         uninitialized comparator, which matches the behavior of the setter
         (it sets it to the uninitialized comparator if the caller specifies
         `null`).
      2. Make the uninitialized comparator return trivial success (and print
         a message) when asked to compare as opposed to throwing. This ensures
         that the comparator will play nicely with live widget bindings
      3. Augment documentation
      4. Add assert that test doesn't modify the value of `autoUpdateGoldenFiles`
      52e46056
  2. 30 Apr, 2018 2 commits
  3. 02 Mar, 2018 1 commit
  4. 26 Feb, 2018 1 commit
  5. 06 Feb, 2018 1 commit
  6. 02 Feb, 2018 1 commit
  7. 01 Feb, 2018 1 commit
  8. 31 Jan, 2018 1 commit
    • amirh's avatar
      Support arbitrary shaped Material. (#14367) · 0672055a
      amirh authored
      For backward compatibility we keep supporting specifying the shape as a
      combination of MaterialType and borderRadius, and we just use that as a
      default when shapeBorder is null.
      
      To cleanup the implementation if shapeBorder was not specified we just
      translate the specified shape to a shapeBorder internally.
      I benchmarked paint, layout and hit testing, with the specialized shape
      clippers vs. the equivalent path clippers and did not see any
      significant performance difference.
      
      For testing, I extended the clippers/physicalShape matchers to match either the
      specialized shape or the equivalent shape.
      0672055a
  9. 30 Jan, 2018 1 commit
  10. 09 Jan, 2018 1 commit
  11. 02 Jan, 2018 1 commit
  12. 08 Dec, 2017 1 commit
    • Yegor's avatar
      Make time picker accessible (#13152) · b80751cd
      Yegor authored
      * make time picker accessible
      
      * use new CustomPaint a11y API
      
      * flutter_localizations tests; use bigger distance delta
      
      * fix am/pm control; selected values
      
      * fix translations; remove @mustCallSuper in describeSemanticsConfiguration
      
      * exclude AM/PM announcement from iOS as on iOS the label is read back automatically
      b80751cd
  13. 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
  14. 10 Nov, 2017 1 commit
  15. 08 Nov, 2017 1 commit
  16. 27 Sep, 2017 1 commit
  17. 11 Sep, 2017 1 commit
  18. 23 Jun, 2017 1 commit
  19. 05 May, 2017 1 commit
  20. 03 May, 2017 1 commit
  21. 04 Mar, 2017 1 commit
  22. 21 Feb, 2017 1 commit
  23. 18 Feb, 2017 1 commit
  24. 12 Jan, 2017 1 commit
  25. 06 Jan, 2017 1 commit
    • Ian Hickson's avatar
      Add a toString to Simulation (#7364) · 79c8e5c7
      Ian Hickson authored
      Also, make hasOneLineDescription more discerning.
      Also, add a test for hasOneLineDescription.
      Also, add a test for GravitySimulation, to test the toString.
      79c8e5c7
  26. 05 Jan, 2017 1 commit
    • Ian Hickson's avatar
      moreOrLessEquals matcher for floating point numbers (#7358) · e08c3c3b
      Ian Hickson authored
      ```dart
      expect(x, moreOrLessEquals(0.0));
      ```
      
      ...for those cases where `x` might be 1e-11 or whatever.
      
      Also, be more resilient when dumping the tree from inside the test framework.
      Also, add an assert that helped me debug something the other day.
      e08c3c3b
  27. 07 Oct, 2016 1 commit
    • Adam Barth's avatar
      Deploy `@checked` (#6244) · 2c21d795
      Adam Barth authored
      This patch adds `@checked` everywhere is needed to remove the
      `strong_mode_invalid_method_override` strong mode error.
      2c21d795
  28. 29 Aug, 2016 1 commit
  29. 27 Jul, 2016 1 commit
  30. 24 Jun, 2016 1 commit
  31. 23 Jun, 2016 1 commit
  32. 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