Commit Graph

1180 Commits

Author SHA1 Message Date
Dan Field
9e314ff749 Make FutureBuilder handle SynchronousFuture correctly, reland SynchronousFuture usage in test assets (#115173)
* Make FutureBuilder handle SynchronousFuture correctly

* Reland  "Load assets in flutter_test without turning event loop. (#115123)" (#115156)"

This reverts commit 3895786f98.
2022-11-12 01:36:05 +00:00
Dan Field
3895786f98 Revert "Load assets in flutter_test without turning event loop. (#115123)" (#115156)
This reverts commit 88e49ed274.
2022-11-11 12:14:39 -08:00
Xilai Zhang
338841afd3 Revert "Revert "Revert "Scribble mixin (#104128)" (#114647)" (#114698)" (#115146)
This reverts commit 3cde69e8d9.
2022-11-11 10:01:11 -08:00
Dan Field
88e49ed274 Load assets in flutter_test without turning event loop. (#115123)
* Load assets in flutter_test without turning event loop.

This makes it possible to load an asset without actually turning
the event loop. This is importnat because our FakeAsync zones
may cause people to sprinkle in extra pumpAndSettles in when
running tests that load assets, which is undesirable.

* fix null checking
2022-11-11 04:17:12 +00:00
Alex Wallen
154ae0f11b updateSemantics in TestWindow should always be implemented. (#114857)
* Test that updateSemantics can be called

* Test that updateSemantics in FakeWindow is always implemented

* Sort import directives

Co-authored-by: a-wallen <stephenwallen@google.com>
2022-11-10 00:40:25 +00:00
Zachary Anderson
a84e369bd2 Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902)
This reverts commit 53e6876226.
2022-11-08 09:26:55 -08:00
Kate Lovett
53e6876226 Allow Flutter golden file tests to be flaky (#114450)
* allow marking a golden check as flaky

* add matchesFlutterGolden to analyze.dart; no tags for flutter_goldens/lib

* Pause

* ++

* ++

* Analyzer therapy

* Once more with feeling

* Nits

* Review feedback

* Silly oops

* Test progress

* More tests

* Finish

* Nits

* Analyzer

* Review feedback

Co-authored-by: Yegor Jbanov <yjbanov@google.com>
2022-11-08 01:14:03 +00:00
Justin McCandless
3cde69e8d9 Revert "Revert "Scribble mixin (#104128)" (#114647)" (#114698)
Relands the "Scribble mixin" PR, which was reverted due to breaking a Google test in the last roll.
Breaks the Scribble feature out of TextInputClient in order to avoid breaking changes.
2022-11-07 11:28:27 -08:00
Jason Simmons
496cf627e6 Delegate TestWindow.updateSemantics to the wrapped SingletonFlutterWindow (#114733)
This restores the updateSemantics capability in TestWindow that had been
removed in https://github.com/flutter/flutter/pull/113382
2022-11-07 17:27:50 +00:00
Callum Moffat
48457d736b WidgetController.startGesture trackpad support (#114631) 2022-11-04 17:13:53 +00:00
Casey Hillers
009fa69f3c Revert "Scribble mixin (#104128)" (#114647)
This reverts commit b571abfbfd.
2022-11-03 17:17:30 -07:00
Phil Quitslund
33b81ed954 fixes for incoming linter (#113794)
* fixes for incomming linter

* + todo

* todo format fix

* justify ignore

* --
2022-11-03 10:56:59 -07:00
fzyzcjy
61deaef5df Fix bug thattimeDilation is not reset, causing subsequent test errors, and add verifications to ensure such problem does not exist in the future (#113830) 2022-11-01 22:50:00 +00:00
Flutter GitHub Bot
ef1236e038 Roll pub packages (#114189) 2022-10-28 19:15:08 +00:00
Alex Wallen
23d258df57 Remove deprecated updateSemantics API usage. (#113382) 2022-10-26 20:20:41 +00:00
pdblasi-google
671c532019 107866: Add support for verifying SemanticsNode ordering in widget tests (#113133) 2022-10-26 20:17:15 +00:00
nbayati
235a3252d2 Provide test API for accessibility announcements (#109661) 2022-10-26 18:05:07 +00:00
Justin McCandless
b571abfbfd Scribble mixin (#104128)
Refactors methods related to the iPad Scribble feature out of TextInputClient
2022-10-24 12:46:43 -07:00
Flutter GitHub Bot
1ebe53c209 Roll pub packages (#113799) 2022-10-21 16:38:18 +00:00
Flutter GitHub Bot
37af038303 Roll pub packages (#113574) 2022-10-20 21:39:12 +00:00
Xilai Zhang
8d3c7e7da6 Revert "AutomatedTestWidgetsFlutterBinding.pump provides wrong pump time stamp, probably because of forgetting the precision" (#113415) 2022-10-14 15:29:07 +00:00
Jonah Williams
4be0cfcb3f [framework] add ignores for platformDispatcher deprecation (#113238) 2022-10-10 22:38:06 +00:00
fzyzcjy
1966aaf8ba AutomatedTestWidgetsFlutterBinding.pump provides wrong pump time stamp, probably because of forgetting the precision (#112609) 2022-10-10 18:32:25 +00:00
Callum Moffat
850f3b37d4 Add PointerScaleEvent and use in InteractiveViewer (#112172)
Enables pinch-to-zoom in InteractiveViewer on web via PointerScaleEvent.
2022-10-05 13:23:46 -07:00
fzyzcjy
c7b40a5270 Export elapseBlocking to test binding, so slow sync work can be simulated such as a slow widget build (#112619) 2022-10-05 16:35:58 +00:00
joshualitt
c66049fcef Reland "Migrate package/flutter to JS static interop. (#111315)" (#112418) 2022-09-29 08:36:51 -07:00
chunhtai
86f30978ff Fixes Text contrast test rect check (#112492) 2022-09-27 19:03:23 +00:00
Casey Hillers
4aa27d844e Revert "Migrate package/flutter to JS static interop. (#111315)" (#112247) 2022-09-23 04:00:22 +00:00
Flutter GitHub Bot
a24b50ba8f Roll pub packages (#112225) 2022-09-22 21:18:22 +00:00
joshualitt
6906493a94 Migrate package/flutter to JS static interop. (#111315) 2022-09-19 10:28:37 -07:00
chunhtai
6b1f84fe10 Reland "Update accessibility contrast test coverage (#109784)" (#110502)
This reverts commit 41b50c22b0.
2022-09-14 09:46:00 -07:00
Flutter GitHub Bot
9ba35816ca Roll pub packages (#111423) 2022-09-12 23:03:50 +00:00
gaaclarke
c33115943f Revert "Started handling messages from background isolates." (#111318) 2022-09-09 23:25:17 +00:00
gaaclarke
0d19d46b44 Started handling messages from background isolates. (#109005)
Started handling messages from background isolates.
2022-09-09 15:14:21 -07:00
yaakovschectman
4d3c122434 Use tristate checkbox engine changes (#111032)
* Introduce tests for tristate checkboxes

* Initial

* Use tristate changes in engine

* Flutter_test matchers test update

* Comments, tests

* Update packages/flutter/lib/src/semantics/semantics.dart

Co-authored-by: Chris Bracken <chris@bracken.jp>

* Assert mutual exclusivity

* Assert valid state before updating state

* Update packages/flutter/lib/src/semantics/semantics.dart

Typo fix in comment

Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>

Co-authored-by: Chris Bracken <chris@bracken.jp>
Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>
2022-09-08 17:41:54 -04:00
pdblasi-google
574fb1f0a0 110598: expect() in semantic test producing unhelpful output (#110613) 2022-09-07 20:55:33 +00:00
Kaushik Iska
d5f372bccd Request DartPerformanceMode.latency during transitions (#110600) 2022-09-07 12:54:06 -04:00
Pierre-Louis
0c2f7bc2a2 Remove errant double spaces (#110758) 2022-09-02 04:00:58 +00:00
Ankur Jain
986503981c Add test where white text on white background fails contrast. (#110217) 2022-08-30 22:50:18 +00:00
Casey Hillers
41b50c22b0 Revert "Update accessibility contrast test coverage (#109784)" (#110436)
This reverts commit f477c8b184.
2022-08-28 10:30:01 -07:00
Christopher Fujino
db51e5d944 [flutter_tools] unpin path_provider_android and roll (#110216) 2022-08-25 19:42:21 +00:00
Ankur Jain
f477c8b184 Update accessibility contrast test coverage (#109784) 2022-08-25 17:28:08 +00:00
Callum Moffat
09e400ead9 Don't disable pointer interaction during trackpad scroll (#106890) 2022-08-17 22:57:07 +00:00
Alexander Aprelev
bfdc9a6cfa Introduce stubbed exclusive parameter to File.create-overridden method (#109646)
* Introduce stubbed `exclusive` parameter to `File.create`-overridden method.

This is to soften landing of a breaking change https://github.com/dart-lang/sdk/issues/49647
2022-08-17 13:26:08 -07:00
pdblasi-google
c8c3f39c93 109638: Windows framework_tests_misc is 2.06% flaky (#109640) 2022-08-17 19:47:07 +00:00
Camille Simon
7db25c36ad Re-land Add Spell Check to EditableText (#109643) 2022-08-17 16:16:02 +00:00
Jonah Williams
0ba88d8b43 Revert "Add Spellcheck to EditableText (Android) (#109334)" (#109631)
This reverts commit ff9fe35682.
2022-08-16 14:30:03 -07:00
Camille Simon
ff9fe35682 Add Spellcheck to EditableText (Android) (#109334) 2022-08-16 18:22:45 +00:00
Ian Hickson
9b2668a451 Minor fix compendium (#107874) 2022-08-11 02:33:07 +00:00
Pierre-Louis
de8a2fa6a7 Update packages (#109054)
In particular, to get `material_color_utilities` `0.2.0`.
2022-08-05 15:21:03 -04:00