1. 09 Feb, 2024 1 commit
    • Kris Pypen's avatar
      Fix: performance improvement on golden test comparison (#142913) · 2f117c54
      Kris Pypen authored
      During golden test image comparison 2 lists of a different type are compared with the method "identical", so this will never be true. The test image is a _Uint8ArrayView while the master image is an Uint8List. So that results in always a heavy computation to get the difference between the test and the master image.
      
      When you run this test snippet I go from 51 seconds to 14 seconds:
      ```dart
      import 'package:flutter/material.dart';
      import 'package:flutter_test/flutter_test.dart';
      
      void main() {
        for (int i = 0; i < 100; i++) {
          testWidgets('Small test', (WidgetTester tester) async {
            await tester.pumpWidget(Directionality(textDirection: TextDirection.ltr, child: Text('jo')));
            await expectLater(find.byType(Text), matchesGoldenFile('main.png'));
          });
        }
      }
      ```
      2f117c54
  2. 07 Feb, 2024 2 commits
  3. 20 Oct, 2023 1 commit
  4. 19 Oct, 2023 1 commit
    • auto-submit[bot]'s avatar
      Reverts "Use Layer.toImage for golden tests on CanvasKit" (#136860) · c881808e
      auto-submit[bot] authored
      Reverts flutter/flutter#135249
      Initiated by: zanderso
      This change reverts the following previous change:
      Original Description:
      Changes golden tests on CanvasKit to use Layer.toImage instead of browser APIs for screenshots. This brings it more in line with other platforms and should also fix some async timing bugs with tests.
      c881808e
  5. 18 Oct, 2023 1 commit
  6. 17 Oct, 2023 1 commit
  7. 08 May, 2023 1 commit
  8. 20 Apr, 2023 1 commit
    • Nate Bosch's avatar
      Remove uses of deprecated test_api imports (#124732) · dcfd35f8
      Nate Bosch authored
      Most of these imports were never appropriate. The `test_api` package was never intended for use in `_test.dart` files.
      Where possible move imports to `matcher`, otherwise move them to `test` or `flutter_test`.
      
      Leave uses of `test_api` from `flutter_test` library code.
      dcfd35f8
  9. 08 Jun, 2022 1 commit
  10. 25 May, 2022 1 commit
    • Pierre-Louis's avatar
      Use `curly_braces_in_flow_control_structures` for non-`flutter` packages (#104629) · 74cfc3db
      Pierre-Louis authored
      * Use `curly_braces_in_flow_control_structures` for `packages/flutter_driver`
      
      * Use `curly_braces_in_flow_control_structures` for `packages/flutter_goldens`
      
      * Use `curly_braces_in_flow_control_structures` for `packages/flutter_goldens_client`
      
      * Use `curly_braces_in_flow_control_structures` for `packages/flutter_localizations`
      
      * Use `curly_braces_in_flow_control_structures` for `packages/flutter_test`
      
      * Use `curly_braces_in_flow_control_structures` for `packages/flutter_web_plugins`
      
      * fix comments
      
      * Use `curly_braces_in_flow_control_structures` for `packages/integration_test`
      
      * fix indentation
      74cfc3db
  11. 20 Jan, 2022 1 commit
  12. 11 Oct, 2021 1 commit
  13. 17 Aug, 2021 1 commit
  14. 01 Jun, 2021 1 commit
  15. 12 Mar, 2021 1 commit
  16. 10 Mar, 2021 1 commit
  17. 02 Mar, 2021 1 commit
  18. 01 Oct, 2020 2 commits
  19. 24 Aug, 2020 1 commit
  20. 14 Jul, 2020 1 commit
  21. 09 Apr, 2020 1 commit
  22. 19 Mar, 2020 1 commit
  23. 07 Feb, 2020 1 commit
  24. 04 Feb, 2020 1 commit
  25. 31 Jan, 2020 3 commits
  26. 19 Dec, 2019 1 commit
  27. 06 Dec, 2019 1 commit
  28. 27 Nov, 2019 1 commit
    • Ian Hickson's avatar
      License update (#45373) · 449f4a66
      Ian Hickson authored
      * Update project.pbxproj files to say Flutter rather than Chromium
      
      Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
      
      * Update the copyright notice checker to require a standard notice on all files
      
      * Update copyrights on Dart files. (This was a mechanical commit.)
      
      * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
      
      Some were already marked "The Flutter Authors", not clear why. Their
      dates have been normalized. Some were missing the blank line after the
      license. Some were randomly different in trivial ways for no apparent
      reason (e.g. missing the trailing period).
      
      * Clean up the copyrights in non-Dart files. (Manual edits.)
      
      Also, make sure templates don't have copyrights.
      
      * Fix some more ORGANIZATIONNAMEs
      449f4a66
  29. 19 Nov, 2019 1 commit
  30. 14 Nov, 2019 1 commit
  31. 25 Oct, 2019 1 commit
  32. 22 Oct, 2019 1 commit
  33. 21 Oct, 2019 1 commit
  34. 16 Sep, 2019 1 commit
  35. 11 Sep, 2019 1 commit