[Mouse] Remove all pointers at the end of tests (#102694)
This commit is contained in:
@@ -952,10 +952,6 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
|
||||
HardwareKeyboard.instance.clearState();
|
||||
// ignore: invalid_use_of_visible_for_testing_member
|
||||
keyEventManager.clearState();
|
||||
assert(!RendererBinding.instance.mouseTracker.mouseIsConnected,
|
||||
'The MouseTracker thinks that there is still a mouse connected, which indicates that a '
|
||||
'test has not removed the mouse pointer which it added. Call removePointer on the '
|
||||
'active mouse gesture to remove the mouse pointer.');
|
||||
// ignore: invalid_use_of_visible_for_testing_member
|
||||
RendererBinding.instance.initMouseTracker();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user