Dan Field
199cb2f5e6
Revert "Allow setting of TestWidgetsFlutterBinding.pointerEventSource ( #107976 )" ( #108038 )
...
This reverts commit 641f4e2403
.
2022-07-20 11:14:58 -07:00
Sai Sandeep Mutyala
641f4e2403
Allow setting of TestWidgetsFlutterBinding.pointerEventSource ( #107976 )
2022-07-20 09:19:17 -07:00
Alexandre Ardhuin
ccd33631e3
enable combinators_ordering ( #107847 )
2022-07-18 22:04:07 +00:00
Jonah Williams
f980d6654e
Add a matcher for Matrix4 that includes epsilon ( #107326 )
2022-07-11 19:23:05 +00:00
Xilai Zhang
d6f090d952
[g3 roll] revert #105537 Implement frameData for TestWindow ( #107168 )
...
* Revert "Reland "Clipping if only one character text overflows (#99146 )" (#102130 )"
This reverts commit 3f43d9f3d4
.
* Revert "Implement frameData for TestWindow (#105537 )"
This reverts commit 21841d7e35
.
2022-07-06 10:29:19 -07:00
Alexandre Ardhuin
bbdf617034
Export public API types from services/*.dart library ( #106316 )
2022-06-28 20:26:06 +00:00
Dan Field
21841d7e35
Implement frameData for TestWindow ( #105537 )
2022-06-27 20:26:08 +00:00
Alexandre Ardhuin
526ca0d498
Export public API types from foundation/scheduler/gestures/semantics ( #106409 )
2022-06-24 21:21:05 +00:00
Anthony Oleinik
a494a12bb0
Add "excluding" optional parameter to TargetPlatformVariant to communicate cases where test should be ran everywhere but specific platforms ( #106216 )
...
added "excluding" optional parameter to targetPlatforms.all
Co-authored-by: Anthony Oleinik <oleina@google.com>
2022-06-22 12:13:26 -07:00
Darren Austin
2532584bf3
Update parameters to the styleFrom
button methods. ( #105291 )
...
* Update parameters to the `styleFrom` button methods.
* Updated the Flutter fix data to point to this PR.
* Updated handling of background color to better maintain backwards compatibility with previous API.
2022-06-21 19:08:22 -07:00
Sam Rawlins
f104be7ae9
Ignore body_might_complete_normally_catch_error violations ( #105795 )
2022-06-16 23:12:06 +00:00
Pierre-Louis
74cfc3db67
Use curly_braces_in_flow_control_structures
for non-flutter
packages ( #104629 )
...
* 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
2022-05-25 20:01:11 +02:00
Michael Goderbauer
2b14e993a7
Cleanup random dead test code ( #104568 )
2022-05-25 10:23:10 -07:00
Xilai Zhang
de230d393c
Revert "Add ability for ModalRoutes
to ignore pointers during transitions and do so on Cupertino
routes ( #95757 )" ( #104520 )
...
This reverts commit 4c0b0be2da
.
2022-05-24 11:10:13 -07:00
Tong Mu
23bc3d64eb
[Mouse] Remove all pointers at the end of tests ( #102694 )
2022-05-19 17:48:10 -07:00
Will Lockwood
4c0b0be2da
Add ability for ModalRoutes
to ignore pointers during transitions and do so on Cupertino
routes ( #95757 )
2022-05-19 15:33:12 -07:00
Phil Quitslund
20f029e3bc
[devicelab, flutter_test, ...] rename local functions with _
s ( #102833 )
2022-05-03 10:29:06 -07:00
Alexandre Ardhuin
07f1c20474
add missing trailing commas in list/set/map literals ( #102585 )
2022-04-27 09:15:35 +02:00
Sai Sandeep Mutyala
7b580fd5df
Enable TestDefaultBinaryMessenger to intercept all platform channels. ( #100049 )
2022-04-25 10:44:07 -07:00
Daniel Cardona Rojas
a3a9a23e46
Add matcher to find at least a given number of widgets ( #102081 ) ( #102342 )
2022-04-22 15:24:10 -07:00
chunhtai
2ebc7bee9c
Adds tooltip to semantics node ( #87684 )
2022-04-21 12:14:09 -07:00
Greg Spencer
efe76a5373
Update key examples to use Focus
widgets instead of RawKeyboardListener
( #101537 )
...
This updates the examples for PhysicalKeyboardKey and LogicalKeyboardKey to use Focus widgets that handle the keys instead of using RawKeyboardListener, since that usually leads people down the wrong path. Updated the See Also and added tests as well. Also exposed the `physicalKey` attribute for `tester.sendKeyEvent`.
2022-04-08 12:05:41 -07:00
matasb-google
120b3deb18
Improve A11Y guidelines/tests for flutter ( #100267 )
...
* Incorrect size comparison
* Code cleanup/formatting
* Additional tests
2022-04-06 10:59:37 +02:00
Michael Goderbauer
3e406c6781
Prepare packages
(minus tools,framework) for use_super_parameters
( #100510 )
2022-03-30 15:31:59 -07:00
Valentin Marquis
4f4c7816c3
Fix/text containing finder work with rich texts ( #99682 )
2022-03-13 23:35:07 -07:00
Viren Khatri
671aa9e95e
complete migration of flutter repo to Object.hash* ( #99505 )
2022-03-04 12:56:21 -08:00
Michael Goderbauer
852bfe2a73
Use BindingBase.platformDispatcher
over BindingBase.window
where possible ( #99443 )
2022-03-04 11:11:07 -08:00
LongCatIsLooong
81464ff642
Reland "[EditableText] honor the "brieflyShowPassword" system setting #97769 " ( #98150 )
2022-02-11 02:30:14 -08:00
godofredoc
3bdea6bb92
Revert "[EditableText] honor the "brieflyShowPassword" system setting ( #97769 )" ( #98089 )
...
This reverts commit 63f48d1ff8
.
2022-02-08 20:11:08 -08:00
LongCatIsLooong
63f48d1ff8
[EditableText] honor the "brieflyShowPassword" system setting ( #97769 )
2022-02-08 17:50:20 -08:00
Ian Hickson
ab89ce285f
Clean up the bindings APIs. ( #89451 )
2022-02-03 14:55:15 -08:00
Lasse R.H. Nielsen
b8fd21b04e
Adds CommonFinders.bySubtype<T extends Widget>()
finder. ( #91415 )
2022-01-25 12:35:14 -08:00
Michael Goderbauer
5684b9f69e
Enable no_leading_underscores_for_local_identifiers ( #96422 )
2022-01-21 14:43:59 -08:00
Konstantin Scheglov
06515fe058
Ignore in _Location ( #96553 )
2022-01-13 13:25:05 -08:00
Jia Hao
22dd0f42ef
[flutter_test] Fix incorrect missed budget count ( #95003 )
2021-12-10 18:44:11 -08:00
chunhtai
049ea73c4d
MinimumTextContrastGuideline should exclude disabled component ( #94489 )
2021-12-01 20:19:02 -08:00
Nick Abalov
544527caa5
Skip links in MinimumTapTargetGuideline. ( #93869 )
2021-11-30 17:34:05 -08:00
nt4f04uNd
3a18e6ee42
Fix reassemble in LiveTestWidgetsFlutterBinding ( #92217 )
2021-11-22 02:01:00 -08:00
Alexander Dahlberg
fbf8391288
Fixed leak and removed no-shuffle tag in window_test.dart ( #93604 )
2021-11-17 14:53:04 -08:00
Ian Hickson
299d484903
Enable more lints ( #91642 )
2021-10-14 22:03:03 -07:00
Ian Hickson
9421627324
Enable only_throw_errors
( #91567 )
2021-10-11 14:13:03 -07:00
Ian Hickson
61a0add286
Enable avoid_redundant_argument_values lint ( #91409 ) ( #91462 )
2021-10-08 09:25:14 -07:00
Zachary Anderson
b9d2177da0
Revert "Enable avoid_redundant_argument_values lint ( #91409 )" ( #91461 )
...
This reverts commit 5fd259be24
.
2021-10-07 21:11:07 -07:00
Ian Hickson
5fd259be24
Enable avoid_redundant_argument_values lint ( #91409 )
2021-10-07 20:13:02 -07:00
Ian Hickson
2bab6514b0
Enable avoid_implementing_value_types
lint ( #91078 )
2021-10-04 13:48:04 -07:00
Kate Lovett
616f9bcffa
Add tag support for executing reduced test sets ( #86821 )
2021-08-30 15:41:02 -07:00
嘟囔
7df68b906c
feat: widget finders add widgetWithImage method ( #89020 )
2021-08-26 22:11:02 -07:00
嘟囔
86fd222fab
feat: add Image support to finder ( #88761 )
2021-08-26 12:51:05 -07:00
Dan Field
c5861cfb56
Revert "Fix DPR in test view configuration ( #88609 )" ( #88889 )
...
This reverts commit 5feee0d8fa
.
2021-08-25 10:09:03 -07:00
Dan Field
5feee0d8fa
Fix DPR in test view configuration ( #88609 )
2021-08-24 14:26:54 -07:00
creativecreatorormaybenot
87b17c8ccf
Add RichText support to find.text() ( #87197 )
2021-08-23 14:47:29 -07:00
Tong Mu
31d0787d20
Revert "Revert "Revert "Restores surface size in the postTest of test binding ( #87240 )" ( #87258 )" ( #87297 )" ( #88293 )
...
This reverts commit 91f8b6be51
.
2021-08-16 09:38:25 -07:00
Tong Mu
91f8b6be51
Revert "Revert "Restores surface size in the postTest of test binding ( #87240 )" ( #87258 )" ( #87297 )
...
This reverts commit ccf6f0353a
.
New impl
Remove temp
Format
2021-08-11 00:37:54 -07:00
Darren Austin
271ed8b21f
Updated skipped tests for flutter_test directory. ( #87880 )
2021-08-09 11:06:35 -07:00
Darren Austin
8322e178fa
Revert "Added 'exclude' parameter to 'testWidgets()'. ( #86397 )" ( #87515 )
2021-08-02 18:05:04 -07:00
Cody Goldberg
ab6ce71402
[flutter_test/integration_test] added setSurfaceSize test coverage ( #82712 )
...
This PR includes an updated test case for integration_test and a new test case for flutter_test to ensure that hit tests transform properly when using setSurfaceSize, for both the IntegrationTestWidgetsFlutterBinding and LiveTestWidgetsFlutterBinding bindings.
2021-07-30 13:47:20 -07:00
Tong Mu
884158a6e3
Reland 3: Make LiveTestWidgetsFlutterBinding work with setSurfaceSize and live tests ( #87239 )
...
* Revert "Revert "Reland 2: Make LiveTestWidgetsFlutterBinding work with setSurfaceSize and live tests (#86912 )" (#87233 )"
This reverts commit 5b80d32a84
.
* Record tap positions
2021-07-29 15:11:26 -07:00
Tong Mu
caf876cf40
Reland: Keyboard events ( #87174 )
2021-07-29 14:24:03 -07:00
Tong Mu
5b80d32a84
Revert "Reland 2: Make LiveTestWidgetsFlutterBinding work with setSurfaceSize and live tests ( #86912 )" ( #87233 )
...
This reverts commit b50991d683
.
2021-07-28 15:44:09 -07:00
Jason Simmons
fca95838e6
Restore the WidgetTester's original surface size after testing setSurfaceSize ( #87202 )
...
Fixes https://github.com/flutter/flutter/issues/87194
2021-07-28 09:40:08 -07:00
Tong Mu
2f4f170dd2
Revert "Keyboard events ( #83752 )" ( #87171 )
...
This reverts commit 5f792ba170
.
2021-07-28 02:32:08 -07:00
Tong Mu
b50991d683
Reland 2: Make LiveTestWidgetsFlutterBinding work with setSurfaceSize and live tests ( #86912 )
2021-07-27 14:44:03 -07:00
Greg Spencer
738ce43d97
Randomize tests, exclude tests that fail with randomization. ( #86793 )
...
* Randomize tests, exclude tests that fail with randomization.
* Disable some more tool tests
2021-07-26 23:40:49 -07:00
Tong Mu
5f792ba170
Keyboard events ( #83752 )
2021-07-26 12:28:05 -07:00
Darren Austin
eb62bce924
Added 'exclude' parameter to 'testWidgets()'. ( #86397 )
2021-07-22 12:35:40 -07:00
Tong Mu
24ad608bd8
Revert "Reland: Make LiveTestWidgetsFlutterBinding work with setSurfaceSize and live tests ( #86739 )" ( #86823 )
...
This reverts commit cf3d9409b3
.
2021-07-21 16:13:10 -07:00
Tong Mu
cf3d9409b3
Reland: Make LiveTestWidgetsFlutterBinding work with setSurfaceSize and live tests ( #86739 )
...
This PR fixes several bugs related to live tests, adds more tests, and completes the documentation of several methods related to pointer events.
2021-07-21 12:49:26 -07:00
Emmanuel Garcia
0504fac7e2
Android e2e screenshot ( #84472 )
2021-07-20 13:36:04 -07:00
Kate Lovett
8802e325a0
Revert "Make LiveTestWidgetsFlutterBinding work with setSurfaceSize and live tests ( #86449 )" ( #86730 )
...
This reverts commit cd78190b0c
.
2021-07-20 14:56:50 -04:00
Danny Tuppeny
91b67e8eb1
Add a "variant: " prefix to variant descriptions in test names ( #86701 )
2021-07-20 09:16:03 -07:00
Tong Mu
cd78190b0c
Make LiveTestWidgetsFlutterBinding work with setSurfaceSize and live tests ( #86449 )
...
This PR fixes several bugs related to live tests, adds more tests, and completes the documentation of several methods related to pointer events.
2021-07-19 14:54:24 -07:00
Ren You
3dea9f0251
Revert "Clean up the bindings APIs ( #86438 )" ( #86484 )
...
This reverts commit d056500bfe
.
2021-07-15 09:29:16 -07:00
Ian Hickson
d056500bfe
Clean up the bindings APIs ( #86438 )
2021-07-14 14:41:24 -07:00
Zachary Anderson
7f741e9181
Revert "Clean up the bindings APIs ( #86388 )" ( #86404 )
...
This reverts commit 31de052e3f
.
2021-07-13 21:32:29 -07:00
Ian Hickson
31de052e3f
Clean up the bindings APIs ( #86388 )
2021-07-13 18:31:11 -07:00
Jonah Williams
2900347afe
[flutter] prevent errant text field clicks from losing focus ( #86041 )
2021-07-13 16:46:04 -07:00
Ian Hickson
c800b9c3e4
Revert "Clean up the bindings APIs ( #83843 )" ( #86386 )
...
This reverts commit e2490f2906
.
2021-07-13 15:47:40 -07:00
Ian Hickson
e2490f2906
Clean up the bindings APIs ( #83843 )
2021-07-13 12:41:03 -07:00
Kaushik Iska
eb742ea8fe
Specify rasterFinishWallTime ( #85731 )
...
This is to transition `rasterFinishWallTime` to a required field in `dart:ui`.
2021-07-01 20:34:48 -04:00
Ahmed Ashour
a3dc90c4f5
Add space before curly parentheses. ( #85306 )
2021-07-01 13:51:05 -07:00
chunhtai
00ee2e59e7
Adds text attributes support for semantics ( #79599 )
...
* Adds label attributes
* fix test
* comments
* list equal
2021-06-17 09:45:34 -07:00
Greg Spencer
88f3811055
Turn on avoid_dynamic_calls lint, except packages/flutter tests, make appropriate changes. ( #84476 )
...
This adds avoid_dynamic_calls to the list of lints, and fixes all instances where it was violated.
Importantly, this lint is NOT turned on for flutter/packages/test, because those changes are happening in another PR: #84478
2021-06-14 14:16:57 -07:00
Michael Goderbauer
811f0d9a15
"Migrate" dummy packages to null safety ( #84013 )
2021-06-04 22:14:03 -07:00
Sam Rawlins
da9b11ec24
Remove "unnecessary" imports. ( #83959 )
2021-06-04 10:54:05 -07:00
Tong Mu
e3da1bd7aa
Test WidgetTester handling test pointers ( #83337 )
...
Adds tests to the following behaviors, which have existed without tests:
- When tapping during live testing, a message is printed with widgets that contain the tap location.
- When tapping during live testing, a mark is displayed on screen on the tap location.
2021-06-02 11:50:09 -07:00
Alexandre Ardhuin
34059eec2c
enable lint prefer_interpolation_to_compose_strings ( #83407 )
2021-06-01 11:14:06 -07:00
Jonah Williams
025a3a7da3
[versions] roll package test redux ( #83367 )
2021-05-26 17:22:28 -07:00
Ian Hickson
5e0cc4cba4
Migrate to ChannelBuffers.push ( #82564 )
2021-05-21 15:09:03 -07:00
Ian Hickson
2ae1e39810
Revert "Migrate to ChannelBuffers.push ( #82057 )" ( #82525 )
2021-05-14 12:09:03 -07:00
Ian Hickson
b86d5c0094
Migrate to ChannelBuffers.push ( #82057 )
2021-05-13 14:34:04 -07:00
Alexandre Ardhuin
157bc92d4a
end of sort_child_properties_last ( #82457 )
2021-05-13 13:39:04 -07:00
Alexandre Ardhuin
7d46d43635
use throwsXxx instead of throwsA(isA<Xxx>()) ( #82328 )
2021-05-12 09:59:02 -07:00
Alexandre Ardhuin
4881b33515
use throwsA matcher instead of try-catch-fail ( #82290 )
2021-05-11 23:34:02 -07:00
Michael Goderbauer
b8a2456737
Enable library_private_types_in_public_api lint ( #81578 )
2021-05-10 16:26:16 -07:00
Ren You
7f1d1414cc
Revert "Migrate to ChannelBuffers.push ( #81235 )" ( #81829 )
...
This reverts commit 35ad43f20c
.
2021-05-04 06:17:19 -07:00
Ian Hickson
35ad43f20c
Migrate to ChannelBuffers.push ( #81235 )
2021-05-03 17:14:03 -07:00
Angjie Li
cbdd9c4787
Revert "Refactor text editing test APIs (Mark III) ( #80003 )" ( #81316 )
...
This reverts commit 285b475124
.
2021-04-27 11:34:36 -07:00
Angjie Li
b74df388e1
Revert "Migrate to ChannelBuffers.push ( #76288 )" ( #81226 )
...
This reverts commit c26ed03c8a
.
2021-04-26 12:57:17 -07:00
Ian Hickson
c26ed03c8a
Migrate to ChannelBuffers.push ( #76288 )
...
* Migrate to ChannelBuffers.push
* Move TestDefaultBinaryMessenger to its own file
* Apply deprecations and fix usages
2021-04-23 15:39:34 -07:00
Ian Hickson
285b475124
Refactor text editing test APIs (Mark III) ( #80003 )
2021-04-21 18:29:04 -07:00
Phil Quitslund
61c30c41b2
fix sort_directives violations ( #80817 )
2021-04-21 13:49:03 -07:00
Justin McCandless
0efb28d706
Revert "Fix a legacy TODO ( #77454 ) ( #79061 )" ( #79959 )
...
This reverts commit b070ed3c04
.
2021-04-07 12:24:22 -07:00
Ian Hickson
b070ed3c04
Fix a legacy TODO ( #77454 ) ( #79061 )
2021-04-02 22:39:03 -07:00
LongCatIsLooong
c1c5b492be
Reland 79654 ( #79656 )
2021-04-02 15:44:02 -07:00
LongCatIsLooong
bf6e38db2b
Revert "enterText
to move the caret to the end ( #79506 )" ( #79654 )
...
This reverts commit 67d8556baa
.
2021-04-02 10:57:14 -07:00
LongCatIsLooong
67d8556baa
enterText
to move the caret to the end (#79506 )
2021-04-01 20:29:03 -07:00
Alexander Brusher
beb62a663d
Rolls isKeyboardKey engine change with fix ( #79407 )
...
* Adds a semantics node flag to identify sliders.
* [fuchsia] Fix roll of engine PR #25167
This changes fixes tests failing due to new isKeyboardKey semantics
flag.
* Fix typo
Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2021-03-31 10:43:58 -07:00
Jonah Williams
443d07b707
[versions] roll to latest test ( #79099 )
2021-03-31 07:45:40 -07:00
Michael Bui
39499bd2bf
make showKeyboard respect finder's skipOffstage value ( #79034 )
2021-03-29 18:19:03 -07:00
Michael Goderbauer
a7e3b1a35d
Clean up ignores that are not ignoring anything ( #78493 )
2021-03-19 15:32:46 -07:00
Angjie Li
6515806717
Revert "Fix a legacy TODO ( #77454 )" ( #78584 )
...
This reverts commit 5e4e530e93
.
2021-03-19 10:08:12 -07:00
Ian Hickson
5e4e530e93
Fix a legacy TODO ( #77454 )
2021-03-16 10:48:02 -07:00
Chris Bracken
565e48777a
Roll Engine from 299eb3e710c1 to 67abe7f9a9e4 (13 revisions) ( #77386 )
...
This is a manual roll since it requires adding a new SemanticsAction to
an element in the flutter_test SemanticsAction matchers test which was
added as part of https://github.com/flutter/engine/pull/24734 .
299eb3e710...67abe7f9a9
2021-03-05 skia-flutter-autoroll@skia.org Roll Skia from 994a571fc79a to 532138cea7ea (4 revisions) (flutter/engine#24812 )
2021-03-05 skia-flutter-autoroll@skia.org Roll Dart SDK from b321d01eec78 to 4693d6d4f88e (1 revision) (flutter/engine#24811 )
2021-03-05 skia-flutter-autoroll@skia.org Roll Dart SDK from 835da00aa6b5 to b321d01eec78 (1 revision) (flutter/engine#24808 )
2021-03-05 skia-flutter-autoroll@skia.org Roll Skia from d42fe062d0a7 to 994a571fc79a (1 revision) (flutter/engine#24806 )
2021-03-05 skia-flutter-autoroll@skia.org Roll Skia from 3b58d38966f4 to d42fe062d0a7 (2 revisions) (flutter/engine#24805 )
2021-03-05 skia-flutter-autoroll@skia.org Roll Skia from 6ba242d2a201 to 3b58d38966f4 (1 revision) (flutter/engine#24804 )
2021-03-05 skia-flutter-autoroll@skia.org Roll Dart SDK from 1b674d73af53 to 835da00aa6b5 (1 revision) (flutter/engine#24803 )
2021-03-05 chris@bracken.jp Update cppwinrt to build 2.0.210304.5 (flutter/engine#24801 )
2021-03-05 skia-flutter-autoroll@skia.org Roll Skia from 55aaefe687c7 to 6ba242d2a201 (18 revisions) (flutter/engine#24799 )
2021-03-05 47866232+chunhtai@users.noreply.github.com Adds set text action for voice access (flutter/engine#24734 )
2021-03-04 jason-simmons@users.noreply.github.com SkParagraph: support multiple default font families (flutter/engine#24662 )
2021-03-04 skia-flutter-autoroll@skia.org Roll Clang Mac from MQQ43_LGr... to MRLGJYv8V... (flutter/engine#24794 )
2021-03-04 jason-simmons@users.noreply.github.com Allow calls to legacyMakeTypeface in the AssetFontManager (flutter/engine#24612 )
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC cbracken@google.com on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md
2021-03-05 10:10:32 -08:00
Michael Goderbauer
ed755fba5e
Enable avoid_unnecessary_containers lint ( #77294 )
2021-03-04 15:29:03 -08:00
Michael Goderbauer
7b251f5f37
Enable use_function_type_syntax_for_parameters lint ( #77163 )
2021-03-04 08:59:17 -08:00
Greg Spencer
c6ef4c75d9
Turn on sized_box_for_whitespace lint, fix instances. ( #77099 )
2021-03-03 17:29:02 -08:00
Michael Goderbauer
0f568298d8
enable use_key_in_widget_constructors lint ( #77032 )
2021-03-02 10:14:02 -08:00
Kate Lovett
6ec9014298
Expose the diff from ComparisonResult ( #77014 )
2021-03-02 10:09:03 -08:00
Jason Simmons
6757c7dd47
Use a null default skip value in testWidgets so it can inherit the group's skip flag ( #76174 )
2021-02-17 14:31:03 -08:00
Sam Rawlins
fcad4e2efe
Remove "unnecessary" imports in flutter_test ( #76157 )
2021-02-16 16:01:05 -08:00
Alexandre Ardhuin
d546e1d311
fix for upcoming lint use_named_constants ( #74788 )
2021-01-27 20:20:44 +01:00
Ian Hickson
37a0189773
Don't leak exceptions thrown by message channels ( #74446 )
2021-01-27 11:19:04 -08:00
Michael Goderbauer
7a3a29e71f
Fixes Intrinsics for RenderParagraph and RenderWrap ( #70656 )
2020-11-20 17:24:58 -08:00
Michael Goderbauer
cca1215939
Properly initialize RestorationManager in the TestBinding ( #70398 )
2020-11-12 13:59:05 -08:00
Greg Spencer
86f9ab511e
Revert usages of the binding's platformDispatcher to use window instead ( #70319 )
...
This reverts usages of the binding's platformDispatcher to use window again temporarily, because there isn't a TestPlatformDispatcher yet, and so some tests were failing because they mocked the TestWindow to return certain things (locales) that were returning the real values instead of the test values.
Once I've created a TestPlatformDispatcher to allow fake data to be passed to it, we can go back to using the platformDispatcher in all of these places
2020-11-12 11:17:00 -08:00
Zachary Anderson
e59ab90ae1
Add Dart SDK constraint to a pubspec ( #70030 )
...
This will unblock the roll of the next Dart SDK
2020-11-07 11:42:05 -08:00
Alexander Brusher
099ae9b417
Re-enables tests previously failing due to new semantics flag. ( #66916 )
2020-10-22 15:32:03 -07:00
Michael Goderbauer
42f3709a5a
Sound null safety for framework and flutter_test ( #68642 )
2020-10-21 10:09:11 -07:00
Alexandre Ardhuin
c0176c9ee5
use_is_even_rather_than_modulo ( #68301 )
2020-10-16 20:20:00 +02:00
Dan Field
12f54e17f4
reland List queue search optimization ( #68214 )
...
* Revert "Revert "Improve performance of collectAllElements (#68065 )" (#68207 )"
This reverts commit 46ff57d6f1
.
* use fewer elements for benchmark
2020-10-15 13:46:50 -07:00
Jonah Williams
46ff57d6f1
Revert "Improve performance of collectAllElements ( #68065 )" ( #68207 )
...
This reverts commit 8ba5732c4c
.
2020-10-15 08:04:59 -07:00
Dan Field
8ba5732c4c
Improve performance of collectAllElements ( #68065 )
2020-10-14 21:32:04 -07:00
Jonah Williams
ef6c720d40
[flutter_test] handle breaking change to test main ( #67425 )
...
* [flutter_test] handle breaking change to test main . Fixes #67382
2020-10-06 16:52:23 -07:00
Michael Goderbauer
8998167d0f
Make FlutterErrorDetails.exception non-nullable as documented ( #67364 )
2020-10-05 18:07:02 -07:00
Michael Goderbauer
cba170fbb2
Migrate the tests of flutter_test to null-safety ( #67058 )
2020-10-01 16:27:02 -07:00
Kate Lovett
d1178ae73b
Fix local gold output for flutter/flutter ( #66139 )
2020-10-01 11:17:03 -07:00
Michael Goderbauer
19e07d2beb
Migrate flutter_test ( #66663 )
2020-09-30 17:03:40 -07:00
Christian Mürtz
1415078828
Find text containing in tests ( #65072 )
2020-09-16 16:32:03 -07:00
Alexander Brusher
68660e127c
Disables test failing due to new semantics flag. ( #65194 )
...
This change disables a failing test prevent PR #20385 from merging.
2020-09-10 16:44:32 -07:00
Ming Lyu (CareF)
2c716c4d49
add vsync overhead to FrameTimingSummarizer
( #63835 )
2020-08-17 16:51:04 -07:00
Ming Lyu (CareF)
c2368bdd6f
bug fix for pointer id in test gestures ( #63816 )
2020-08-15 10:41:02 -07:00
Michael Goderbauer
39a46bedad
Remove decommission from RestorationBuckets ( #63687 )
2020-08-13 15:01:04 -07:00
Ming Lyu (CareF)
0629030a05
WidgetTester.drag with time duration ( #63410 )
2020-08-12 21:01:03 -07:00
LongCatIsLooong
cea055ef00
Make Scrollable's free scroll initial velocity matches that of iOS ( #60501 )
2020-08-12 13:31:05 -07:00
Ming Lyu (CareF)
b09dee59bf
add FrameTimingSummarizer ( #63434 )
2020-08-11 06:21:04 -07:00
Hans Muller
73ce3f21d0
Updated old button references in packages/flutter_test ( #63230 )
2020-08-08 18:20:53 -07:00
Ming Lyu (CareF)
8081455394
revert widgettester breaking change ( #62914 )
2020-08-04 17:26:05 -07:00
Ming Lyu (CareF)
a36b0ba4f6
promote WidgetTester pumpAndSettle ( #62640 )
2020-08-04 08:31:08 -07:00
Ming Lyu (CareF)
e03980ec47
separate scroll until visible implementation for lower level accessibility ( #62462 )
2020-08-04 08:31:04 -07:00
Ming Lyu (CareF)
d053a4d00a
Move key event and semantics related method from WidgetTester to WidgetController ( #62362 )
2020-07-29 08:11:06 -07:00
Ming Lyu (CareF)
e9e36f3909
WidgetController.pump use optional duration ( #62091 )
2020-07-29 08:01:04 -07:00
Ming Lyu (CareF)
6d07b1b475
Add WidgetController.scrollUntilVisible ( #62097 )
2020-07-28 10:46:07 -07:00
Michael Goderbauer
175e5c9aca
Restoration Framework ( #60375 )
...
* state restoration
* added example
* typos and analyzer
* whitespace
* more typos
* remove unnecessary import
* whitespace
* fix sample code
* tests for restorationmanager and restorationid
* ++
* typo
* tests for bucket, part1
* rename tests
* more tests
* finished tests for service layer
* remove wrong todo
* ++
* review comments
* tests for Unmanaged and regular scope
* RootRestorationScope tests
* typo
* whitespace
* testing framework
* tests for properties
* last set of tests
* analyzer
* typo
* dan review
* whitespace
* ++
* refactor finalizers
* ++
* ++
* dispose guard
* ++
* ++
* dan review
* add manager assert
* ++
* analyzer
* greg review
* fix typo
* Ian & John review
* ian review
* RestorationID -> String
* revert comment
* Make primitives non-nullable in prep for NNBD
2020-07-28 10:16:36 -07:00
Ming Lyu (CareF)
9e2e0ef3b4
implement handlePointerEventRecord for LiveWidgetController ( #61266 )
2020-07-22 18:31:08 -07:00
Ming Lyu (CareF)
3e7fe378e3
Reland "LiveTestWidgetsFlutterBinding support for non-touch event" ( #61901 )
2020-07-21 02:36:03 -07:00
Ming Lyu (CareF)
f98a00c750
Revert "LiveTestWidgetsFlutterBinding support for non-touch event ( #61872 )" ( #61900 )
...
This reverts commit aa4b4d35e1
.
2020-07-20 17:20:30 -04:00
Ming Lyu (CareF)
aa4b4d35e1
LiveTestWidgetsFlutterBinding support for non-touch event ( #61872 )
2020-07-20 17:02:59 -04:00
Ming Lyu (CareF)
c9cf9c9940
Promote WidgetTester.ensureVisible to WidgetController ( #61540 )
...
* Promtoe WidgetTester.ensureVisible
* modify according to tvolkert@
2020-07-15 14:54:49 -04:00
Ming Lyu (CareF)
a76b5eb79f
Add support in WidgetTester for an array of inputs ( #60796 )
...
* Add input event array support
* Add a tap test
* remove unused import
* remove extra assert
2020-07-10 17:03:12 -04:00
Ming Lyu (CareF)
61477b5949
Fix PointerAddedEvent handling in LiveTestWidgetsFlutterBinding ( #61102 )
...
* Fix PointerAddedEvent handling in tester
2020-07-08 13:28:51 -04:00
Dan Field
fb57edcc80
Revert "Revert "Fix remaining holes in stack trace demangling ( #60478 )" ( #60916 )" ( #60996 )
...
This reverts commit 2c7e5dd935
.
2020-07-07 15:30:32 -07:00
Dan Field
2c7e5dd935
Revert "Fix remaining holes in stack trace demangling ( #60478 )" ( #60916 )
...
This reverts commit d986fdc31a
.
2020-07-06 10:07:36 -07:00
Andre
d986fdc31a
Fix remaining holes in stack trace demangling ( #60478 )
...
* Implement stack trace demangling in the framework.
2020-07-06 08:11:03 -07:00
Michael Goderbauer
769468298b
Do not return partial semantics from tester.getSemantics ( #60367 )
2020-06-26 11:03:02 -07:00
David Worsham
db48cadd0d
Remove unused physicalDepth code ( #60152 )
2020-06-24 11:33:01 -07:00
chunhtai
5623fea53c
Reverse the semantics order of modal barrier and modal scope ( #59290 )
...
* Add semantics sort key for modal scope and modal barrier
* fix test
* fix test
* fix test
* fix space
* fix more tests
* addressing comments
2020-06-24 10:37:53 -07:00
Dan Field
868c4d8ce0
Fix issue with stack traces getting mangled ( #59900 )
2020-06-23 15:29:57 -07:00
Dan Field
68b131f313
[e2e] make test bindings friendlier to integration tests ( #58210 )
2020-05-29 11:50:12 -07:00
cg021
1cfd792a38
remove pending timers list code out of assert message ( #57287 )
...
* move pending timers list code out of assert
* style change
Co-authored-by: Emmanuel Garcia <egarciad@google.com>
* add unit tests
* formatting
* pending timer test
* pending timer assertion test
* add setup and teardown
Co-authored-by: Emmanuel Garcia <egarciad@google.com>
2020-05-18 18:18:16 -05:00
Tong Mu
fb94d3fb78
Animation sheet recorder ( #55527 )
2020-05-14 14:32:03 -07:00
Greg Spencer
c7b10df765
Fix initial value for highlight mode on desktop platforms. ( #54306 )
...
This fixes the initial value of FocusManager.highlightMode so that it gets initialized correctly on desktop platforms.
My recent update of this code (#52990 ) broke things so that the highlight mode never changed from the initial default of touch, which meant that focus highlights didn't show unless you set FocusManager.highlightStrategy to something (even automatic, the default: setting it caused the mode to be updated).
2020-04-10 13:23:55 -07:00
Jacob MacDonald
efdce3cf72
drop image package dependency for goldens ( #54144 )
2020-04-09 11:21:23 -07:00
Alexandre Ardhuin
f5a9902577
enable avoid_equals_and_hash_code_on_mutable_classes ( #52507 )
2020-04-06 13:36:01 -07:00
Miguel Beltran
7ff3a50fe7
Set highContrast value from AccessibilityFeatures into MediaQueryData ( #48811 )
2020-02-26 13:36:02 -08:00
Kate Lovett
52ee8a6c65
Remove highContrast from FakeAccessibilityFeatures ( #51130 )
2020-02-20 10:28:49 -08:00
Miguel Beltran
d295fbb6a1
Add highContrast to FakeAccessibilityFeatures test ( #48486 )
2020-02-19 13:26:05 -08:00
Dan Field
b2a27c109c
Be clearer about when and why we override HttpClient in tests ( #49844 )
2020-01-31 09:22:30 -08:00
Dan Field
8b2993337a
revert #48985 ( #49572 )
2020-01-27 14:36:02 -08:00
Tianguang
e2aa9e13ce
Achieve Color Contrast Accessibility for Menu Demo ( #49099 )
2020-01-23 18:43:01 -08:00
Alexandre Ardhuin
3800bb7b10
fix missing spaces in adjacent strings ( #49159 )
2020-01-21 16:43:03 -08:00
Anthony
b67d5ec6e9
[a11y] Make sure RenderFractionalTranslation updates its semantics after the translation field is set ( #48985 )
2020-01-17 15:13:01 -08:00
Greg Spencer
bf1d822198
Add TargetPlatform.macOS tests to cupertino, foundation, rendering, and services libraries. ( #45644 )
2020-01-16 19:38:01 -08:00
Alexandre Ardhuin
003541499b
use isA<Xxx>() matcher ( #48482 )
2020-01-16 12:43:03 -08:00
Ian Hickson
e2b169ebd3
Apply void_checks lint. ( #48267 )
2020-01-13 10:03:01 -08:00
Alexandre Ardhuin
82262d8896
format operator== according to flutter style guide ( #48449 )
2020-01-09 08:23:02 -08:00
Alexandre Ardhuin
4f9b6cf017
enable lint prefer_final_in_for_each ( #47724 )
2020-01-07 16:32:04 +01:00
Greg Spencer
19b9206add
Add variant testing to testWidgets ( #45646 )
...
This adds the ability to define variants of tests with different environmental values for a particular testWidgets test.
This allows you to run the same test multiple times with a different test environment. One test variant has been implemented that allows running a test with different settings of the TargetPlatform.
2019-12-20 15:00:16 -08:00
Kate Lovett
c281369356
Fix subdirectory output ( #47256 )
2019-12-18 16:33:01 -08:00
Ian Hickson
449f4a6673
License update ( #45373 )
...
* 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
2019-11-27 15:04:02 -08:00
Alexandre Ardhuin
4bf03c6cf8
implicit-casts:false in flutter_test ( #44996 )
2019-11-19 08:10:24 +01:00
Jonah Williams
e77c24ef91
Update package test ( #44882 )
2019-11-14 09:31:36 -08:00
LongCatIsLooong
4ac2daf337
CupertinoTheme & CupertinoTextTheme dark mode updates ( #41859 )
2019-10-28 15:50:08 -07:00
Albertus Angga Raharja
b31ca1aaca
Add more structure to errors (continuation of #34684 ) ( #42640 )
...
* Add structured errors in Animations, TabView, ChangeNotifier
* Add structured error on MaterialPageRoute, BoxBorder, DecorationImagePainter, TextSpan
* Add structured errors in Debug
* Fix test errors
* Add structured errors in Scaffold and Stepper
* Add structured errors in part of Rendering Layer
* Fix failing test due to FloatingPoint precision
* Fix failing tests due to precision error and not using final
* Fix failing test due to floating precision error with RegEx instead
* Add structured error in CustomLayout and increase test coverage
* Add structured error & its test in ListBody
* Add structured error in ProxyBox and increase test coverage
* Add structured error message in Viewport
* Fix styles and add more assertions on ErrorHint and DiagnosticProperty
* Add structured error in scheduler/binding and scheduler/ticker
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Add structured error in AssetBundle and TextInput
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Add structured errors in several widgets #1
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Remove unused import
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Add assertions on hint messages
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Fix catch spacing
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Add structured error in several widgets part 2 and increase code coverage
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Add structured error in flutter_test/widget_tester
* Fix floating precision accuracy by using RegExp
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Remove todo to add tests in Scaffold showBottomSheet
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Fix reviews by indenting lines and fixing the assertion orders
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Fix failing tests due to renaming class
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Try skipping the NetworkBundleTest
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
* Remove leading space in material/debug error hint
Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
2019-10-28 11:00:49 -07:00
Greg Spencer
89d6c8d90b
Enables setting of semantics focused and focusable attributes within Focus widgets. ( #41814 )
...
This adds a Semantics node to the Focus and FocusScope widgets, setting the focused and focusable attributes so that the accessibility subsystem can be told when a control has the input focus.
Includes an engine roll to flutter/engine@77252d2 , and the following 8 engine changes:
flutter/engine@77252d2 Greg Spencer Add missing focusable testing info (flutter/engine#13013 )
flutter/engine@0e42a29 skia-flutter-.. Roll src/third_party/skia 54548626a977..e27a503a0a21 (1 commits) (flutter/engine#13024 )
flutter/engine@6b56ed7 gaaclarke Refactor: FlutterDartProject (flutter/engine#13006 )
flutter/engine@393480c skia-flutter-.. Roll src/third_party/skia 77dde599c98a..54548626a977 (1 commits) (flutter/engine#13023 )
flutter/engine@080b89d skia-flutter-.. Roll src/third_party/skia 2b1a25a4d324..77dde599c98a (1 commits) (flutter/engine#13021 )
flutter/engine@90b0f30 Ben Konyi Roll src/third_party/dart f4a72bfc64..bb04f145b2 (18 commits) (flutter/engine#13020 )
flutter/engine@049fb89 skia-flutter-.. Roll fuchsia/sdk/core/linux-amd64 from q_uYX... to cknsi... (flutter/engine#13019 )
flutter/engine@6925b2a skia-flutter-.. Roll fuchsia/sdk/core/mac-amd64 from wuAtw... to u0JpE... (flutter/engine#13018 )
Related Issues
Addresses #40101
Landing on red in order to fix the build: it's red because of the needed engine roll.
2019-10-09 14:45:42 -07:00
Kate Lovett
1ec44a0c36
Incorporating Link Semantics ( #41327 )
2019-10-08 18:16:11 -07:00
Mehmet Fidanboylu
c19e553d64
Allow test beds to override defaultTestTimeout ( #40806 )
2019-09-24 16:53:40 -07:00
Greg Spencer
0e6cb28dbe
Add fake keyboard key generation to the testing framework ( #40706 )
...
There were four or five different implementations in various tests for sendFakeKeyEvent, which roughly all did the same thing. I was going to add yet another one, and decided that it needed to be generalized and centralized. This replaces those instances with something that just takes a LogicalKeyboardKey so that it's self-documenting, and can be used with multiple platforms.
This adds two functions to widget tester: sendKeyDownEvent and sendKeyUpEvent which simulate key up/down from a physical keyboard. It also adds global functions simulateKeyDownEvent and simulateKeyUpEvent that can be called without a widget tester. All are async functions protected by the async guard.
2019-09-24 08:14:38 -07:00
Michael Goderbauer
4373a31971
Reapply "Revert "Propagate textfield character limits to semantics ( #40468 )" ( #40767 )
2019-09-18 14:55:37 -07:00
Michael Goderbauer
b4324aed59
Revert "Propagate textfield character limits to semantics ( #40468 )" ( #40714 )
...
This reverts commit 6ad88bd5c0
.
2019-09-17 16:37:11 -07:00
Michael Goderbauer
6ad88bd5c0
Propagate textfield character limits to semantics ( #40468 )
2019-09-17 14:39:50 -07:00