@@ -1559,7 +1559,9 @@ void main() {
1559
1559
expect(tester.testTextInput.setClientArgs!['inputAction'], equals('TextInputAction.done'));
1560
1560
});
1561
1561
1562
- // Test case for https://github.com/flutter/flutter/issues/123523.
1562
+ // Test case for
1563
+ // https://github.com/flutter/flutter/issues/123523
1564
+ // https://github.com/flutter/flutter/issues/134846 .
1563
1565
testWidgetsWithLeakTracking(
1564
1566
'The focus and callback behavior are correct when TextInputClient.onConnectionClosed message received',
1565
1567
(WidgetTester tester) async {
@@ -1597,17 +1599,9 @@ void main() {
1597
1599
editableText.connectionClosed();
1598
1600
await tester.pump();
1599
1601
1600
- if (kIsWeb) {
1601
- expect(onSubmittedInvoked, isTrue);
1602
- expect(onEditingCompleteInvoked, isTrue);
1603
- // Because we add the onEditingComplete and we didn't unfocus there, so focus still exists.
1604
- expect(focusNode.hasFocus, isTrue);
1605
- } else {
1606
- // For mobile and other platforms, calling connectionClosed will only unfocus.
1607
- expect(focusNode.hasFocus, isFalse);
1608
- expect(onEditingCompleteInvoked, isFalse);
1609
- expect(onSubmittedInvoked, isFalse);
1610
- }
1602
+ expect(focusNode.hasFocus, isFalse);
1603
+ expect(onEditingCompleteInvoked, isFalse);
1604
+ expect(onSubmittedInvoked, isFalse);
1611
1605
});
1612
1606
1613
1607
testWidgetsWithLeakTracking('connection is closed when TextInputClient.onConnectionClosed message received', (WidgetTester tester) async {
0 commit comments