mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() ## Description This PRs changes the default value for the `platform` parameter used to simulate key events. With this PR, the default value is "web" on web, otherwise it is the operating system name retrieved from `defaultTargetPlatform`. Previously, for methods in `WidgetController`, it defaulted to âwebâ on web, and âandroidâ everywhere else. And for methods in `KeyEventSimulator` it defaulted to âwebâ on web, and the operating system that the test was running on everywhere else. Because the operating system was based on `Platform.operatingSystem`, it usually differed from the target platform the test was running on. AFAIK, the `platform` parameter is only meaningful for simulating `RawKeyEvent`. Once `RawKeyboard` will be fully removed, the `platform` parameter wonât be needed. @gspencergoog In the meantime, do you think it is worth merging this fix? ## Related Issue Fixes to https://github.com/flutter/flutter/issues/133955 ## Tests Adds one test. |
||
---|---|---|
.. | ||
bindings_environment | ||
custom_exception_reporter | ||
semantics_checker | ||
test_config | ||
utils | ||
accessibility_test.dart | ||
accessibility_window_test.dart | ||
all_elements_test.dart | ||
analysis_options.yaml | ||
bindings_async_gap_test.dart | ||
bindings_reset_test.dart | ||
bindings_restoration_test.dart | ||
bindings_test_failure.dart | ||
bindings_test.dart | ||
controller_test.dart | ||
coordinate_translation_test.dart | ||
demangle_test.dart | ||
display_test.dart | ||
event_simulation_test.dart | ||
finders_test.dart | ||
frame_timing_summarizer_test.dart | ||
goldens_test.dart | ||
integration_bindings_test.dart | ||
live_binding_test.dart | ||
live_widget_controller_test.dart | ||
matchers_test.dart | ||
mock_canvas_test.dart | ||
multi_view_accessibility_test.dart | ||
multi_view_controller_test.dart | ||
multi_view_testing.dart | ||
platform_dispatcher_test.dart | ||
reference_image_test.dart | ||
restoration_test.dart | ||
semantics_finder_test.dart | ||
stack_manipulation_test.dart | ||
test_async_utils_test.dart | ||
test_default_binary_messenger_test.dart | ||
test_text_input_test.dart | ||
view_test.dart | ||
widget_tester_leaks_test.dart | ||
widget_tester_live_device_test.dart | ||
widget_tester_test.dart | ||
window_test.dart |