1. 28 Mar, 2018 1 commit
    • Alexander Aprelev's avatar
      Again move mockito to 300plus2 (#15981) · bffae215
      Alexander Aprelev authored
      * Revert "Revert "Move mockito to 3.0.0-alpha. (#15949)" (#15979)"
      
      This reverts commit e59651f9.
      
      * More thenReturn to thenAnswer when mocking Futures
      
      * Revert "More thenReturn to thenAnswer when mocking Futures"
      
      This reverts commit 194d2cf41754ad171efd6bb5898cf73bce5a75ab as we are reverting engine roll.
      
      * Revert "Revert "More thenReturn to thenAnswer when mocking Futures""
      
      This reverts commit 52c9e96b304b220f66d78a252fccea0c8e0ef24c.
      
      * Add dependency override
      
      * Fix issue
      bffae215
  2. 27 Mar, 2018 3 commits
    • Chris Bracken's avatar
      Apply Mockito-related type fixes (#16002) · 39eeec47
      Chris Bracken authored
      Type-related fixes in flutter_driver and fuchsia_remote_debug_protocol
      tests.
      39eeec47
    • Chris Bracken's avatar
      Revert "Roll engine to version dd6f46c485192f4506035088c9065b9f5dbba9ab (#15885)" (#15980) · 49c87d01
      Chris Bracken authored
      This caused a test failure in the integration_ui_ios devicelab test.
      
      ```
      stdout: [   +3 ms] 00:02 [32m+0[0m: end-to-end test Ensure keyboard dismissal resizes the view to original size[0m
      stdout: [+8129 ms] 00:11 [32m+0[0m[31m -1[0m: end-to-end test Ensure keyboard dismissal resizes the view to original size [1m[31m[E][0m[0m
      stdout: [   +5 ms]   DriverError: Failed to fulfill Tap: Flutter application not responding
      stdout: [        ]   Original error: TimeoutException after 0:00:07.500000: Future not completed
      stdout: [        ]   Original stack trace:
      stdout: [        ]   #0      FlutterDriver._sendCommand (package:flutter_driver/src/driver/driver.dart:324:18)
      stdout: [        ]
      stdout: [        ]   #1      FlutterDriver.tap (package:flutter_driver/src/driver/driver.dart:368:11)
      stdout: [        ]
      stdout: [        ]   #2      main.. (file:///[... snip ...]/flutter/dev/integration_tests/ui/test_driver/keyboard_resize_test.dart:34:20)
      ```
      
      This reverts commit 067be92a.
      49c87d01
    • Siva's avatar
      Roll engine to version dd6f46c485192f4506035088c9065b9f5dbba9ab (#15885) · 067be92a
      Siva authored
      Roll engine to version dd6f46c485192f4506035088c9065b9f5dbba9ab
      067be92a
  3. 16 Feb, 2018 1 commit
    • Vyacheslav Egorov's avatar
      Fix several Dart 2 issues in the flutter_driver. (#14749) · aa7e9637
      Vyacheslav Egorov authored
      * All lists produced by JSON parsing are List<dynamic>. If more
      speficic type is required then they need to be explicitly cast, e.g.
      using castFrom helper;
      * Function of type (ByText) -> Finder is not a subtype of
      (SerializableFinder) -> Finder because ByText is in the contravariant
      position;
      * In Dart 2 typed(any) should be used instead of any in mockito based
      tests.
      aa7e9637
  4. 05 Feb, 2018 1 commit
  5. 19 Dec, 2017 1 commit
    • Alan Russian's avatar
      Change async stubbing to use thenAnswer. (#13521) · 30720bd1
      Alan Russian authored
      * Change async stubbing to use thenAnswer.
      
      Mockito now prohibits calling thenReturn with Futures and Streams. dart-lang/mockito#79
      
      * Update all Mockito deps to 3.0.0.
      
      * Revert "Update all Mockito deps to 3.0.0."
      
      This reverts commit e8ab9d37c33d3d7fe384abde64ea5b4d72623c75.
      
      I did not correctly update the mockito dep, and there's no easy way to update to 3.0 alpha right now.
      
      * Change thenAnswer((_) => to thenAnswer((invocation) =>
      
      * Add Invocation type to thenAnswer lambdas
      30720bd1
  6. 23 Nov, 2017 1 commit
    • Chris Bracken's avatar
      Reorganise flutter driver implementation sources (#13163) · cf37a472
      Chris Bracken authored
      This patch reorganises flutter_driver's lib/src directory into three
      subdirectories:
      
      * driver: sources transitively imported/exported by flutter_driver.dart,
        which defines the API used by driver tests executed on the host machine.
      
      * extension: sources transitively imported/exported by
        driver_extension.dart, which defines the API used to instrument a
        Flutter app running on the target device for use with a driver test.
      
      * common: sources common to both driver and extension code.
      
      This makes rolling Flutter into repositories that use Bazel (or
      Bazel-like build systems) significantly more robust, due to the simpler
      glob patterns involved.
      cf37a472
  7. 22 Nov, 2017 1 commit
  8. 06 Sep, 2017 3 commits
  9. 10 May, 2017 1 commit
  10. 10 Mar, 2017 2 commits
  11. 04 Mar, 2017 1 commit
  12. 28 Feb, 2017 1 commit
  13. 10 Feb, 2017 1 commit
  14. 27 Jan, 2017 1 commit
  15. 09 Jan, 2017 1 commit
  16. 10 May, 2016 1 commit
  17. 04 May, 2016 2 commits
    • pq's avatar
      Literals get type annotations. · bcede8df
      pq authored
      As per the recent fix to the `always_specify_types` lint (https://github.com/dart-lang/linter/issues/199), literal maps and lists are now expected to be explicitly typed.
      
      Running that lint on the repo identifies quite a few spots to update.  This focuses on `flutter_driver` and `flutter_sprites` (somewhat arbitrarily) but the changes are fairly representative.
      
      Note there are a number of places where I made a quick judgement on how specific to make the types.  Feedback on those is welcome.  (Especially as we move forward with more.)
      bcede8df
    • Hans Muller's avatar
      Gallery demo start-time performance test (#3655) · a9b965cb
      Hans Muller authored
      *  Gallery demo start-time performance test
      a9b965cb
  18. 19 Apr, 2016 2 commits
    • Ian Hickson's avatar
      Refactor service extensions (#3397) · 261923e5
      Ian Hickson authored
      Bindings now have a debugRegisterServiceExtensions() method that is
      invoked in debug mode (only). (Once we have a profile mode, there'll be
      a registerProfileServiceExtensions() method that gets called in that
      mode only to register extensions that apply then.)
      
      The BindingBase class provides convenience methods for registering
      service extensions that do the equivalent of:
      
      ```dart
      void extension() { ... }
      bool extension([bool enabled]) { ... }
      double extension([double extension])  { ... }
      Map<String, String> extension([Map<String, String> parameters]) { ... }
      ```
      
      The BindingBase class also itself registers ext.flutter.reassemble,
      which it has call a function on the binding called
      reassembleApplication().
      
      The Scheduler binding now exposes the preexisting
      ext.flutter.timeDilation.
      
      The Renderer binding now exposes the preexisting ext.flutter.debugPaint.
      
      The Renderer binding hooks reassembleApplication to trigger the
      rendering tree to be reprocessed (in particular, to fix up the
      optimisation closures).
      
      All the logic from rendering/debug.dart about service extensions is
      replaced by the above.
      
      I moved basic_types to foundation.
      
      The FlutterWidgets binding hooks reassembleApplication to trigger the
      widget tree to be entirely rebuilt.
      
      Flutter Driver now uses ext.flutter.driver instead of
      ext.flutter_driver, and is hooked using the same binding mechanism.
      Eventually we'll probably move the logic into the Flutter library so
      that you just get it without having to invoke a special method first.
      261923e5
    • Yegor's avatar
      [driver] "waitFor" command in place of broken "exists" (#3373) · e7657b94
      Yegor authored
      * [driver] "waitFor" command in place of broken "exits"
      
      * [driver] wait using frame callback
      e7657b94
  19. 15 Apr, 2016 1 commit
  20. 05 Apr, 2016 1 commit
  21. 30 Mar, 2016 1 commit
  22. 29 Mar, 2016 1 commit
    • Yegor Jbanov's avatar
      [driver] fix observatory port # and timeline data extraction · bfa16b2b
      Yegor Jbanov authored
      The way we pick observatory port # has changed and we have broken
      logic that handles port 8181. To fix the buildbot, switch to port
      8182. We can later figure out what we want to do when we clean up
      port handling.
      
      The old VM extention for extracting the timeline data is gone.
      Switch to the new '_getVMTimeline' API.
      bfa16b2b
  23. 14 Mar, 2016 1 commit
  24. 10 Mar, 2016 1 commit
  25. 03 Mar, 2016 1 commit
  26. 02 Mar, 2016 1 commit
  27. 01 Mar, 2016 1 commit
  28. 24 Feb, 2016 1 commit
  29. 20 Feb, 2016 1 commit
    • yjbanov's avatar
      "flutter drive" command · a2b1bd46
      yjbanov authored
      Runs a test app and a driver test simultaneously, then stops the app.
      
      Usage:
      
      ```
      flutter drive --target=/path/to/test/app.dart
      ```
      
      This command will look for `/path/to/test/app_test.dart` by
      convention. We will expand into other ways of discovering tests in the
      future.
      a2b1bd46
  30. 18 Feb, 2016 2 commits
    • yjbanov's avatar
      move to pub version of vm_service_client · 439aadf4
      yjbanov authored
      439aadf4
    • Yegor Jbanov's avatar
      add flutter_driver package · b0e45594
      Yegor Jbanov authored
      This commit contains:
      
      - FlutterDriver API for e2e tests usable in conjunction with package:test
      - FlutterDriverExtension to be enabled by the application in order to
        allow an external agent to connect to it and drive user interactions and
        probe into the element tree
      - initial implementations of tap, findByValueKey and getText commands (to
        be expanded in future PRs)
      b0e45594