[Mouse] Remove all pointers at the end of tests (#102694)

This commit is contained in:
Tong Mu
2022-05-19 17:48:10 -07:00
committed by GitHub
parent 4c0b0be2da
commit 23bc3d64eb
61 changed files with 2 additions and 267 deletions

View File

@@ -190,7 +190,6 @@ void main() {
// Drag by mouse to select the entire selectable text.
TestGesture gesture =
await tester.startGesture(topLeft, kind: PointerDeviceKind.mouse);
addTearDown(gesture.removePointer);
await gesture.moveTo(topRight);
await gesture.up();
@@ -213,7 +212,6 @@ void main() {
firstWordOffset,
kind: PointerDeviceKind.mouse,
);
addTearDown(gesture.removePointer);
await gesture.up();
await gesture.down(firstWordOffset);
await gesture.up();
@@ -226,7 +224,6 @@ void main() {
lastWordOffset,
kind: PointerDeviceKind.mouse,
);
addTearDown(gesture.removePointer);
await gesture.up();
await gesture.down(lastWordOffset);
await gesture.up();