mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix leaky test. (#148788)
This commit is contained in:
parent
7727ff46cc
commit
654a5b3773
@ -1499,7 +1499,9 @@ void main() {
|
||||
|
||||
testWidgets('Scopes can be focused without sending focus to descendants.', (WidgetTester tester) async {
|
||||
final FocusScopeNode scopeNode = FocusScopeNode(debugLabel: 'Scope1',);
|
||||
addTearDown(scopeNode.dispose);
|
||||
final FocusNode childFocusNode = FocusNode(debugLabel: 'Child1',);
|
||||
addTearDown(childFocusNode.dispose);
|
||||
await tester.pumpWidget(
|
||||
FocusScope.withExternalFocusNode(
|
||||
focusScopeNode: scopeNode,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user