flutter/packages/flutter/test
Camille Simon bc0cbc15d6
Add spell check TextSpan creation logic that doesn't rely on composing region (#123481)
Fixes https://github.com/flutter/flutter/issues/119534 by adding extra
logic to allow the proper `TextSpan` trees to be build with spell check
results that does not rely on the composing region.

Also, refreshes the algorithm used to correct spell check results to
improve cases where spell check results are out of date, but the
composing region line does not help smooth over this fact by giving the
framework extra time to update while a word is being composed (because a
composing region line would cover up any flashing red underlines).

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [ ] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [ ] All existing and new tests are passing.

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
[Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
[test-exempt]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
[Discord]: https://github.com/flutter/flutter/wiki/Chat
2023-04-05 14:43:56 -07:00
..
animation Enable dangling_library_doc_comments and library_annotations lints (#117365) 2022-12-20 16:03:21 -08:00
cupertino Adds i18n to widget layer (#123620) 2023-04-04 22:57:35 +00:00
dart Enable dangling_library_doc_comments and library_annotations lints (#117365) 2022-12-20 16:03:21 -08:00
examples Enable dangling_library_doc_comments and library_annotations lints (#117365) 2022-12-20 16:03:21 -08:00
foundation [flutter_tools] Remove --no-sound-null-safety #4 (#124039) 2023-04-04 15:25:27 -07:00
gestures Fix velocity_tracker_test.dart (#123559) 2023-03-27 23:02:43 +00:00
harness
material Revert "Fix scrolling in the Drawer and NavigationDrawer triggers AppBar's scrolledUnderElevation" (#124226) 2023-04-05 16:10:32 +00:00
painting Fix out-of-bounds and reversed TextBox queries in computing caret metrics (#122480) 2023-03-28 03:16:20 +00:00
physics Remove no-shuffle from framework tests, part 1: easy cases (#123751) 2023-03-30 18:28:51 +00:00
rendering Rename RenderView.window to RenderView.view (#124060) 2023-04-04 11:22:22 -07:00
scheduler 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
semantics Fix how tests count open SemanticsHandles (#121571) 2023-02-28 23:55:58 +00:00
services Remove no-shuffle from framework tests, part 1: easy cases (#123751) 2023-03-30 18:28:51 +00:00
widgets Add spell check TextSpan creation logic that doesn't rely on composing region (#123481) 2023-04-05 14:43:56 -07:00
_goldens_io.dart Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902) 2022-11-08 09:26:55 -08:00
_goldens_web.dart Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902) 2022-11-08 09:26:55 -08:00
analysis_options.yaml
flutter_test_config.dart Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902) 2022-11-08 09:26:55 -08:00
image_data.dart Add ResizeImage.policy (#121154) 2023-02-23 03:53:05 +00:00