Initialize all bindings before starting the text_editing_action_target test suite (#90067)

Fixes https://github.com/flutter/flutter/issues/90057
This commit is contained in:
Jason Simmons 2021-09-14 10:46:35 -07:00 committed by GitHub
parent b889915997
commit 2866f79c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,9 @@ class _FakeEditableTextState with TextSelectionDelegate, TextEditingActionTarget
} }
void main() { void main() {
// Ensure that all TestRenderingFlutterBinding bindings are initialized.
renderer;
test('moveSelectionLeft/RightByLine stays on the current line', () async { test('moveSelectionLeft/RightByLine stays on the current line', () async {
const String text = 'one two three\n\nfour five six'; const String text = 'one two three\n\nfour five six';
final _FakeEditableTextState editableTextState = _FakeEditableTextState( final _FakeEditableTextState editableTextState = _FakeEditableTextState(