Skip to content

Commit

Permalink
autocomplete test: Add extra pump in new test for new RawAutocomplete…
Browse files Browse the repository at this point in the history
… delay

Fixes #1289.
  • Loading branch information
chrisbobbe committed Jan 17, 2025
1 parent efcf201 commit 5e8d0a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/widgets/autocomplete_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ void main() {
text: 'some',
selection: TextSelection(baseOffset: 1, extentOffset: 3)));
await tester.pump();
// Add an extra pump to account for any potential frame delays introduced
// by the post frame callback in RawAutocomplete's implementation.
await tester.pump();

check(controller.value)
..text.equals('some')
..selection.equals(
Expand Down

0 comments on commit 5e8d0a8

Please sign in to comment.