Test WidgetTester handling test pointers (#83337)

Adds tests to the following behaviors, which have existed without tests:

- When tapping during live testing, a message is printed with widgets that contain the tap location.
- When tapping during live testing, a mark is displayed on screen on the tap location.
This commit is contained in:
Tong Mu
2021-06-02 11:50:09 -07:00
committed by GitHub
parent 4ddaa13d01
commit e3da1bd7aa
10 changed files with 453 additions and 50 deletions

View File

@@ -167,7 +167,7 @@ Future<void> main() async {
} else if (delays.last < delay) {
delays.last = delay;
}
tester.binding.handlePointerEvent(event, source: TestBindingEventSource.test);
tester.binding.handlePointerEventForSource(event, source: TestBindingEventSource.test);
}
}