mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() ## Background
The Windows runner has a race at startup:
1. **Platform thread**: creates a hidden window
2. **Platform thread**: launches the Flutter engine
3. **UI/Raster threads**: renders the first frame
4. **Platform thread**: Registers a callback to show the window once the next frame has been rendered.
Steps 3 and 4 happen in parallel and it is possible for step 3 to complete before step 4 starts. In this scenario, the next frame callback is never called and the window is never shown.
As a result the `windows_startup_test`'s test, which [verifies that the "show window" callback is called](
|
||
---|---|---|
.. | ||
android | ||
assets | ||
integration_test | ||
ios | ||
lib | ||
linux | ||
macos | ||
test | ||
test_driver | ||
web | ||
windows | ||
pubspec.yaml | ||
README.md |
Flutter UI integration tests
This project contains a collection of non-plugin-dependent UI
integration tests. The device code is in the lib/
directory, the
driver code is in the test_driver/
directory. They work together.
Normally they are run via the devicelab.
keyboard_resize
Verifies that showing and hiding the keyboard resizes the content.
routing
Verifies that flutter drive --route
works correctly.